Documentation ¶
Index ¶
- type Canvas
- func (c *Canvas) AlwaysRender() bool
- 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) Disable() bool
- func (c *Canvas) Enable() bool
- func (c *Canvas) Enabled() bool
- func (c *Canvas) GetHTTPHandlers() ([]*board.HTTPHandler, error)
- func (c *Canvas) GetWidth() int
- func (c *Canvas) Name() string
- func (c *Canvas) PaddedBounds() image.Rectangle
- func (c *Canvas) Render(ctx context.Context) error
- func (c *Canvas) Scrollable() bool
- func (c *Canvas) Set(x, y int, color color.Color)
- func (c *Canvas) SetStateChangeCallback(s func())
- func (c *Canvas) SetWidth(x int)
- func (c *Canvas) Store(s bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas is a image.Image representation of a WS281x matrix, it implements image.Image interface and can be used with draw.Draw for example
func NewCanvas ¶
NewCanvas returns a new Canvas using the given width and height and creates a new WS281x matrix using the given config
func (*Canvas) AlwaysRender ¶
func (*Canvas) ColorModel ¶
ColorModel returns the canvas' color model, always color.RGBAModel
func (*Canvas) GetHTTPHandlers ¶
func (c *Canvas) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*Canvas) PaddedBounds ¶
func (*Canvas) SetStateChangeCallback ¶
func (c *Canvas) SetStateChangeCallback(s func())
Click to show internal directories.
Click to hide internal directories.