Documentation
¶
Overview ¶
The fb package provides a framebuffer abstraction. It also implements the displayer interface which is used by some drawing libraries (especially libraries intended for tinygo).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Displayer ¶
type Displayer interface { SetPixel(x, y int16, c color.RGBA) Display() error Size() (int16, int16) }
Displayer defines the methods that any display-compatible framebuffer must implement.
type ImageFB ¶
type ImageFB struct {
// contains filtered or unexported fields
}
ImageFB encapsulates an in-memory image framebuffer.
func (*ImageFB) Display ¶
Display implements the Display method for the displayer interface. It currently does nothing and returns nil.
func (*ImageFB) SetPixel ¶
SetPixel sets the pixel color at the specified x and y coordinates within the framebuffer. It does nothing if the coordinates are out of bounds.
Click to show internal directories.
Click to hide internal directories.