Files
drivers/displayer.go
T
Daniel Esteban 772a1044c4 Define common display interface (#31)
* issue #27 definition of Displayer interface
2019-04-24 18:56:49 +02:00

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
}