Documentation ¶
Index ¶
- type ConsoleMatrix
- func (c *ConsoleMatrix) At(x int, y int) color.Color
- func (c *ConsoleMatrix) Close() error
- func (c *ConsoleMatrix) Geometry() (int, int)
- func (c *ConsoleMatrix) Play(ctx context.Context, startInterval time.Duration, ...) error
- func (c *ConsoleMatrix) PreLoad(scene *MatrixScene)
- func (c *ConsoleMatrix) Render() error
- func (c *ConsoleMatrix) Reset()
- func (c *ConsoleMatrix) ReversePreLoad()
- func (c *ConsoleMatrix) Set(x int, y int, clr color.Color)
- func (c *ConsoleMatrix) SetBrightness(brightness int)
- type Matrix
- type MatrixPoint
- type MatrixScene
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleMatrix ¶
type ConsoleMatrix struct {
// contains filtered or unexported fields
}
ConsoleMatrix prints a representation of a matrix to a terminal. Useful for testing layouts without a Pi or an LED matrix.
func NewConsoleMatrix ¶
NewConsoleMatrix ...
func (*ConsoleMatrix) PreLoad ¶
func (c *ConsoleMatrix) PreLoad(scene *MatrixScene)
func (*ConsoleMatrix) ReversePreLoad ¶
func (c *ConsoleMatrix) ReversePreLoad()
func (*ConsoleMatrix) SetBrightness ¶
func (c *ConsoleMatrix) SetBrightness(brightness int)
SetBrightness does nothing
type Matrix ¶
type Matrix interface { Geometry() (width, height int) At(x int, y int) color.Color Set(x int, y int, c color.Color) // Apply([]color.Color) error Render() error Close() error SetBrightness(brightness int) PreLoad(*MatrixScene) ReversePreLoad() Play(ctx context.Context, startInterval time.Duration, interval <-chan time.Duration) error }
Matrix is an interface that represent any RGB matrix, very useful for testing
type MatrixScene ¶
type MatrixScene struct { Points []MatrixPoint // Index is the ordering of each scene Index int }
Click to show internal directories.
Click to hide internal directories.