README.md: Example code illustrates monochrome use.

pull/34/head
Peter Hinch 2022-07-08 14:41:33 +01:00
rodzic 3bee15bd14
commit 741051ea6e
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -407,6 +407,7 @@ from gui.core.colors import * # Standard color constants
CWriter.set_textpos(ssd, 0, 0) # In case previous tests have altered it
# Instantiate any CWriters to be used (one for each font)
wri = CWriter(ssd, arial10, GREEN, BLACK, verbose=False) # Colors are defaults
# wri = Writer(ssd, arial10, verbose=False) # Monochrome display uses Writer
wri.set_clip(True, True, False)
```
Calling `nanogui.refresh` on startup sets up and clears the display. The method