Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canvas ¶
type Canvas interface { image.Image Set(x, y int, ledColor color.Color) Render() error Clear() Close() error GetLeds() *[]color.Color }
Canvas is a image.Image representation of a LED matrix, it implements image.Image interface and can be used with draw.Draw for example
type FloatingPoint ¶
type FloatingPoint struct {
X, Y float64
}
func (FloatingPoint) Add ¶
func (fp FloatingPoint) Add(other FloatingPoint) FloatingPoint
func (FloatingPoint) AddXY ¶
func (fp FloatingPoint) AddXY(x, y float64) FloatingPoint
func (FloatingPoint) Int ¶
func (fp FloatingPoint) Int() Point
func (FloatingPoint) String ¶
func (fp FloatingPoint) String() string
type Positionable ¶
Click to show internal directories.
Click to hide internal directories.