Documentation
¶
Index ¶
- type Matrix
- func (t *Matrix) Apply(leds []color.Color) error
- func (e *Matrix) At(position int) color.Color
- func (t *Matrix) Close() error
- func (e *Matrix) Geometry() (width, height int)
- func (t *Matrix) GetBrightness() int
- func (e *Matrix) Render() error
- func (e *Matrix) Set(position int, c color.Color)
- func (t *Matrix) SetBrightness(brightness int)
- func (e Matrix) Size() (int, int)
- func (e Matrix) String() string
- type Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Matrix ¶
type Matrix struct {
Matrix []Row
}
Matrix is a logical, or (0, 1)-matrix
func GenerateEmpty ¶
GenerateEmpty generates the n-by-n matrix with all entries set to 0.
func (*Matrix) GetBrightness ¶
func (*Matrix) SetBrightness ¶
Click to show internal directories.
Click to hide internal directories.