mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
772a1044c4
* issue #27 definition of Displayer interface
15 lines
290 B
Go
15 lines
290 B
Go
package drivers
|
|
|
|
import "image/color"
|
|
|
|
type Displayer interface {
|
|
// Size returns the current size of the display.
|
|
Size() (x, y int16)
|
|
|
|
// SetPizel modifies the internal buffer.
|
|
SetPixel(x, y int16, c color.RGBA)
|
|
|
|
// Display sends the buffer (if any) to the screen.
|
|
Display() error
|
|
}
|