Documentation ¶
Overview ¶
Package screen provides access to the Sense HAT's 8x8 LED matrix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FrameBuffer ¶
FrameBuffer is an 8x8 texture that can draw to the LED Matrix.
func NewFrameBuffer ¶
func NewFrameBuffer(options ...func(*FrameBuffer)) *FrameBuffer
NewFrameBuffer creates a back buffer for the screen.
func (*FrameBuffer) At ¶
func (fb *FrameBuffer) At(x, y int) color.Color
At returns the color of the LED at x,y
func (*FrameBuffer) Bounds ¶
func (fb *FrameBuffer) Bounds() image.Rectangle
Bounds of the frame buffer (it is 8x8)
func (*FrameBuffer) ColorModel ¶
func (fb *FrameBuffer) ColorModel() color.Model
ColorModel of the frame buffer
func (*FrameBuffer) Set ¶
func (fb *FrameBuffer) Set(x, y int, c color.Color)
Set the color of the LED at x,y
func (*FrameBuffer) SetImage ¶
func (fb *FrameBuffer) SetImage(m image.Image)
SetImage sets the frame buffer to the provided image
Click to show internal directories.
Click to hide internal directories.