Documentation ¶ Index ¶ Variables func Fill(canvas *ledclient.Canvas, col colorful.Color) func FillFunc(canvas *ledclient.Canvas, f func(x, y int, c colorful.Color) colorful.Color) func Run(canvas *ledclient.Canvas, ch chan Parameters, terminate chan int) type Effect type Parameters Constants ¶ This section is empty. Variables ¶ View Source var Effects = make(map[string]Effect, 0) Functions ¶ func Fill ¶ func Fill(canvas *ledclient.Canvas, col colorful.Color) Fill fills the entire color with one color. func FillFunc ¶ func FillFunc(canvas *ledclient.Canvas, f func(x, y int, c colorful.Color) colorful.Color) FillFunc executes a callback function for every LED in the canvas. The callback function must return the new LED color. Arguments to the callback function is the physical LED coordinates and the existing color. func Run ¶ func Run(canvas *ledclient.Canvas, ch chan Parameters, terminate chan int) Run runs an effect forever. Types ¶ type Effect ¶ type Effect interface { Draw(*ledclient.Canvas, Parameters) Delay() time.Duration } type Parameters ¶ type Parameters struct { Name string Color colorful.Color Adjust float64 Angle float64 } Source Files ¶ View all Source files effect.go northernlights.go off.go rainbow.go solid.go wave.go Click to show internal directories. Click to hide internal directories.