diff --git a/displayer.go b/displayer.go new file mode 100644 index 0000000..9b27b50 --- /dev/null +++ b/displayer.go @@ -0,0 +1,14 @@ +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 +}