Versions in this module Expand all Collapse all v1 v1.0.2 Mar 28, 2021 v1.0.1 Aug 14, 2020 Changes in this version type Color + func (c *Color) At(x, y int) color.Color + func (c *Color) Bounds() image.Rectangle + func (c *Color) ColorModel() color.Model type Frame + func (f Frame) At(x, y int) color.Color + func (f Frame) Bounds() image.Rectangle + func (f Frame) ColorModel() color.Model v1.0.0 Aug 29, 2017 Changes in this version + func MinMax(v, min, max int) int + func MinMax32(v, min, max int32) int32 + type Add struct + Patterns []SPattern + func (a *Add) Render(pixels Frame, timeMS uint32) + type Aurore struct + func (a *Aurore) Render(pixels Frame, timeMS uint32) + type Bell struct + func (b *Bell) Scale(v uint16) uint16 + type Chronometer struct + Child SPattern + func (r *Chronometer) Render(pixels Frame, timeMS uint32) + type Color struct + B uint8 + G uint8 + R uint8 + func (c *Color) Add(d Color) + func (c *Color) Dim(intensity uint8) + func (c *Color) FromRGBString(s string) error + func (c *Color) FromString(s string) error + func (c *Color) MarshalJSON() ([]byte, error) + func (c *Color) Mix(d Color, gradient uint8) + func (c *Color) Render(pixels Frame, timeMS uint32) + func (c *Color) String() string + func (c *Color) UnmarshalJSON(b []byte) error + type Const int32 + func (c *Const) MarshalJSON() ([]byte, error) + func (c *Const) UnmarshalJSON(b []byte) error + func (c Const) Eval(timeMS uint32, l int) int32 + type Crop struct + After SValue + Before SValue + Child SPattern + func (c *Crop) Render(pixels Frame, timeMS uint32) + type Curve string + const Direct + const Ease + const EaseIn + const EaseInOut + const EaseOut + const StepEnd + const StepMiddle + const StepStart + func (c Curve) Scale(intensity uint16) uint16 + func (c Curve) Scale8(intensity uint16) uint8 + type Dim struct + Child SPattern + Intensity SValue + func (d *Dim) Render(pixels Frame, timeMS uint32) + type Frame []Color + func (f *Frame) FromString(s string) error + func (f *Frame) UnmarshalJSON(b []byte) error + func (f Frame) Add(r Frame) + func (f Frame) Dim(intensity uint8) + func (f Frame) MarshalJSON() ([]byte, error) + func (f Frame) Mix(b Frame, gradient uint8) + func (f Frame) Render(pixels Frame, timeMS uint32) + func (f Frame) String() string + func (f Frame) ToRGB(b []byte) + type Gradient struct + Curve Curve + Left SPattern + Right SPattern + func (g *Gradient) Render(pixels Frame, timeMS uint32) + type Interpolation string + const Linear + const Nearest + const NearestSkip + func (i Interpolation) Scale(in, out Frame) + type Lightning struct + Center SValue + HalfWidth SValue + Intensity int + StartMS SValue + func (l *Lightning) Render(pixels Frame, timeMS uint32) + type Loop struct + Curve Curve + Patterns []SPattern + ShowMS uint32 + TransitionMS uint32 + func LoadPNG(content []byte, frameDuration time.Duration, vertical bool) *Loop + func (l *Loop) Render(pixels Frame, timeMS uint32) + type MovePerHour SValue + func (m *MovePerHour) Eval(timeMS uint32, l int, cycle int) int + func (m *MovePerHour) MarshalJSON() ([]byte, error) + func (m *MovePerHour) UnmarshalJSON(b []byte) error + type NightStars struct + C Color + func (n *NightStars) Render(pixels Frame, timeMS uint32) + type OpAdd struct + AddMS int32 + func (o *OpAdd) Eval(timeMS uint32, l int) int32 + func (o *OpAdd) MarshalJSON() ([]byte, error) + func (o *OpAdd) UnmarshalJSON(b []byte) error + type OpMod struct + TickMS int32 + func (o *OpMod) Eval(timeMS uint32, l int) int32 + func (o *OpMod) MarshalJSON() ([]byte, error) + func (o *OpMod) UnmarshalJSON(b []byte) error + type OpStep struct + TickMS int32 + func (o *OpStep) Eval(timeMS uint32, l int) int32 + type Pattern interface + Render func(pixels Frame, timeMS uint32) + type Percent int32 + func (p *Percent) MarshalJSON() ([]byte, error) + func (p *Percent) UnmarshalJSON(b []byte) error + func (p Percent) Eval(timeMS uint32, l int) int32 + type PingPong struct + Child SPattern + MovePerHour MovePerHour + func (p *PingPong) Render(pixels Frame, timeMS uint32) + type Rainbow struct + func (r *Rainbow) MarshalJSON() ([]byte, error) + func (r *Rainbow) Render(pixels Frame, timeMS uint32) + func (r *Rainbow) String() string + func (r *Rainbow) UnmarshalJSON(b []byte) error + type Rand struct + TickMS int32 + func (r *Rand) Eval(timeMS uint32, l int) int32 + func (r *Rand) MarshalJSON() ([]byte, error) + func (r *Rand) UnmarshalJSON(b []byte) error + type Repeated struct + Frame Frame + func (r *Repeated) Render(pixels Frame, timeMS uint32) + type Rotate struct + Child SPattern + MovePerHour MovePerHour + func (r *Rotate) Render(pixels Frame, timeMS uint32) + type SPattern struct + func (s *SPattern) MarshalJSON() ([]byte, error) + func (s *SPattern) Render(pixels Frame, timeMS uint32) + func (s *SPattern) UnmarshalJSON(b []byte) error + type SValue struct + func (s *SValue) Eval(timeMS uint32, l int) int32 + func (s *SValue) MarshalJSON() ([]byte, error) + func (s *SValue) UnmarshalJSON(b []byte) error + type Scale struct + Child SPattern + Interpolation Interpolation + RatioMilli SValue + func (s *Scale) Render(pixels Frame, timeMS uint32) + type Split struct + Left SPattern + Offset SValue + Right SPattern + func (s *Split) Render(pixels Frame, timeMS uint32) + type Subset struct + Child SPattern + Length SValue + Offset SValue + func (s *Subset) Render(pixels Frame, timeMS uint32) + type ThumbnailsCache struct + NumberLEDs int + ThumbnailHz int + ThumbnailSeconds int + func (t *ThumbnailsCache) GIF(serialized []byte) ([]byte, error) + type Thunderstorm struct + AvgMS int + func (t *Thunderstorm) Render(pixels Frame, timeMS uint32) + type Transition struct + After SPattern + Before SPattern + Curve Curve + OffsetMS uint32 + TransitionMS uint32 + func (t *Transition) Render(pixels Frame, timeMS uint32) + type Value interface + Eval func(timeMS uint32, l int) int32 + type WishingStar struct + AverageDelay time.Duration + Duration time.Duration + func (w *WishingStar) Render(pixels Frame, timeMS uint32)