Initial Home page
21
Home.md
Normal file
21
Home.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
Welcome to the esp-gui-lib wiki!
|
||||||
|
|
||||||
|
## Rich text
|
||||||
|
Use the rich text rendering facilities to render colorful text.
|
||||||
|
|
||||||
|
```
|
||||||
|
#include <richtextrenderer.h>
|
||||||
|
|
||||||
|
const int16_t width = espgui::renderRichText("Color &1red &2green &3blue", 50, 50);
|
||||||
|
```
|
||||||
|
|
||||||
|
| Esc Seq | Result |
|
||||||
|
| ------------- | ------------- |
|
||||||
|
| `&1` | Sets the color to  `TFT_RED` |
|
||||||
|
| `&2` | Sets the color to  `TFT_GREEN` |
|
||||||
|
| `&3` | Sets the color to  `TFT_BLUE` |
|
||||||
|
| `&4` | Sets the color to  `TFT_BLACK` |
|
||||||
|
| `&5` | Sets the color to  `TFT_WHITE` |
|
||||||
|
| `&6` | Sets the color to  `TFT_GREY` |
|
||||||
|
| `&0` | Restores original color (previously set with `tft.setTextColor()` |
|
||||||
|
| `&&` | Prints single `&` character without changing anything else |
|
Reference in New Issue
Block a user