MonoCanvas class
A monochromatic bitmap canvas, with useful drawing routines.
Constructors
- MonoCanvas(int width, int height)
Properties
Methods
-
clear(
) → void -
drawCircle(
int x0, int y0, int r, bool color) → void - Draw a circle outline
-
drawLine(
int x0, int y0, int x1, int y1, bool color) → void - draw a line using Bresenham's line algorithm
-
drawPixel(
int x, int y, bool color) → void - draw single pixel
-
drawRect(
int x, int y, int w, int h, bool color) → void - Draw an outlined rectangle
-
fillRect(
int x, int y, int w, int h, bool color) → void - draw a filled rectangle on the oled
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCursor(
int x, int y) → void - set starting position of a text string on the oled
-
toString(
) → String -
A string representation of this object.
inherited
-
writeString(
Font font, int size, String string, bool color, bool wrap, int linespacing) → void - write text to the oled
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited