Versions in this module Expand all Collapse all v1 v1.0.2 Jul 10, 2020 Changes in this version + var Amber = color.RGBA + var AmberPalette = color.Palette + var Blue = color.RGBA + var Cyan = color.RGBA + var ErrHeaderMagic = errors.New("dmd: unexpected header magic") + var ErrSeek = errors.New("dmd: illegal seek offset") + var GrayPalette = color.Palette + var Green = color.RGBA + var Magenta = color.RGBA + var Mask = color.Palette + var Red = color.RGBA + var Yellow = color.RGBA + func EncodeToGIF(w io.Writer, a Animation, c color.Color) error + type Animation interface + ClockInFront func() bool + ClockOffset func() image.Point + Duration func() time.Duration + IsMask func() bool + Len func() int + Name func() string + NextFrame func() (image.Image, time.Duration, error) + SeekFrame func(pos int) error + Size func() (width, height int) + func Colorize(a Animation, p color.Palette) Animation + func DecodeDMD1(r io.Reader) (Animation, error) + func DecodeGIF(r io.Reader) (Animation, error) + type Animations []Animation + func DecodeRunDMD(r io.ReadSeeker) (Animations, error) + func DecodeVPIN(r io.ReadSeeker) (Animations, error) + func DecodeVPINWithColoring(r io.ReadSeeker, c *Pin2DMDColoring) (Animations, error) + type Pin2DMDColoring struct + Default int + Mappings map[uint32]*Pin2DMDMapping + Masks [][]byte + Palette *Pin2DMDPalette + Palettes []*Pin2DMDPalette + Version uint8 + func DecodePin2DMDColoring(r io.Reader) (c *Pin2DMDColoring, err error) + func LoadPin2DMDColoring(name string) (*Pin2DMDColoring, error) + func (c *Pin2DMDColoring) GetPalette(i int) *Pin2DMDPalette + type Pin2DMDMapping struct + Checksum uint32 + Duration uint32 + Mode SwitchMode + Offset uint32 + PaletteIndex uint16 + func (m Pin2DMDMapping) IsAnimation() bool + type Pin2DMDPalette struct + Colors color.Palette + Index uint16 + IsDefault bool + IsPersistent bool + Type uint8 + type SwitchMode byte + const SwitchModeColorMask + const SwitchModeEvent + const SwitchModeFollow + const SwitchModePalette + const SwitchModeReplace