Skip to content

Graphics

The Graphics object stores and shares parameters used by the graphic elements.

Configure

Ensure the screen is declared and initialised according to the configuration procedure.

#include "Graphics.h"

The pre-processor statement includes the GUI library.

Graphics myGraphics(&myScreen);

The constructor Graphics() sets the link to the screen.

myGraphics.begin();

begin() initialises the GUI with the default parameters.

The default parameters set the colours of the interface to black for text, white for background and grey for middle.

Then, if needed,

myGraphics.setColours(myColours.black, myColours.white, myColours.grey);

setColours() sets the front, back and middle colours of the interface.

Note

For monochrome and colour e-paper screens, ensure the selected colours are supported.

Use

All the graphics elements are objects.

All the listed elements are implement on e-paper screens.

Back to top