Versions in this module Expand all Collapse all v0 v0.1.8 Oct 23, 2020 v0.1.7 Oct 23, 2020 v0.1.6 Oct 23, 2020 v0.1.5 Oct 23, 2020 v0.1.4 Oct 21, 2020 v0.1.3 Oct 21, 2020 v0.1.2 Oct 21, 2020 v0.1.1 Oct 21, 2020 v0.1.0 Oct 21, 2020 Changes in this version + const MatrixEmulatorENV + var DefaultConfig = HardwareConfig + type Animation interface + Next func() (image.Image, <-chan time.Time, error) + type Canvas struct + func NewCanvas(m Matrix) *Canvas + func (c *Canvas) At(x, y int) color.Color + func (c *Canvas) Bounds() image.Rectangle + func (c *Canvas) Clear() error + func (c *Canvas) Close() error + func (c *Canvas) ColorModel() color.Model + func (c *Canvas) Render() error + func (c *Canvas) Set(x, y int, color color.Color) + type HardwareConfig struct + Brightness int + ChainLength int + Cols int + DisableHardwarePulsing bool + GpioSlowdown int + HardwareMapping string + InverseColors bool + PWMBits int + PWMLSBNanoseconds int + Parallel int + Rows int + ScanMode ScanMode + ShowRefreshRate bool + type Matrix interface + Apply func([]color.Color) error + At func(position int) color.Color + Close func() error + Geometry func() (width, height int) + Render func() error + Set func(position int, c color.Color) + func NewRGBLedMatrix(config *HardwareConfig) (c Matrix, err error) + type RGBLedMatrix struct + Config *HardwareConfig + func (c *RGBLedMatrix) Apply(leds []color.Color) error + func (c *RGBLedMatrix) At(position int) color.Color + func (c *RGBLedMatrix) Close() error + func (c *RGBLedMatrix) Geometry() (width, height int) + func (c *RGBLedMatrix) Initialize() error + func (c *RGBLedMatrix) Render() error + func (c *RGBLedMatrix) Set(position int, color color.Color) + type ScanMode int8 + const Interlaced + const Progressive + type ToolKit struct + Canvas *Canvas + Transform func(img image.Image) *image.NRGBA + func NewToolKit(m Matrix) *ToolKit + func (tk *ToolKit) Close() error + func (tk *ToolKit) PlayAnimation(a Animation) error + func (tk *ToolKit) PlayGIF(r io.Reader) (chan bool, error) + func (tk *ToolKit) PlayImage(i image.Image, delay time.Duration) error + func (tk *ToolKit) PlayImageUntil(i image.Image, notify <-chan time.Time) error + func (tk *ToolKit) PlayImages(images []image.Image, delay []time.Duration, loop int) chan bool