Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Consolas7pt = Font{ // contains filtered or unexported fields }
View Source
var Consolas8pt = Font{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type BitmapDisplay ¶
type BitmapDisplay struct {
// contains filtered or unexported fields
}
func (*BitmapDisplay) Print ¶
func (d *BitmapDisplay) Print(s string)
type CustomDevice ¶
type CustomDevice struct { PixelSetter func(int16, int16, color.RGBA) Displayer func() error Clearer func() }
CustomDevice is a customizable implementation of the Device interface. Set the functions to whatever you'd like to keep the complexity of the hardware outside of this package.
func (CustomDevice) Clear ¶
func (m CustomDevice) Clear()
func (CustomDevice) Display ¶
func (m CustomDevice) Display() error
func (CustomDevice) SetPixel ¶
func (m CustomDevice) SetPixel(x, y int16, ps PixelState)
type Device ¶
type Device interface { SetPixel(x, y int16, c PixelState) Display() error Clear() }
type Font ¶
type Font struct {
// contains filtered or unexported fields
}
Font contains font information for Consolas 8pt
func (*Font) GetBitmapOffset ¶
func (*Font) StringBitmap ¶
type FontBitmaps ¶
type FontBitmaps []uint8
type FontCharInfo ¶
type FontCharInfo [2]int
type FontDisplay ¶
type FontDisplay struct {
// contains filtered or unexported fields
}
func (*FontDisplay) Print ¶
func (d *FontDisplay) Print(s string)
type PixelState ¶
type WipeAnimation ¶
type WipeAnimation struct {
// contains filtered or unexported fields
}
func NewWipeAnimation ¶
func NewWipeAnimation(device Device) WipeAnimation
func (*WipeAnimation) Run ¶
func (wa *WipeAnimation) Run()
Click to show internal directories.
Click to hide internal directories.