Documentation ¶
Index ¶
- Constants
- type Emulator
- func (e *Emulator) Apply(leds []color.Color) error
- func (e *Emulator) At(position int) color.Color
- func (e *Emulator) Close() error
- func (e *Emulator) Geometry() (width, height int)
- func (e *Emulator) GetBrightness() int
- func (e *Emulator) Init()
- func (e *Emulator) Render() error
- func (e *Emulator) Set(position int, c color.Color)
- func (e *Emulator) SetBrightness(brightness int)
Constants ¶
View Source
const DefaultPixelPitch = 12
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emulator ¶
type Emulator struct { PixelPitch int Gutter int Width int Height int GutterColor color.Color PixelPitchToGutterRatio int Margin int // contains filtered or unexported fields }
func NewEmulator ¶
func (*Emulator) GetBrightness ¶
Those new functions have no use with the emulator
func (*Emulator) Init ¶
func (e *Emulator) Init()
Init initialize the emulator, creating a new Window and waiting until is painted. If something goes wrong the function panics
func (*Emulator) SetBrightness ¶
Click to show internal directories.
Click to hide internal directories.