Initial Home page

2021-09-05 21:44:35 +02:00
commit 9fc7380223

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 ![#ff0000](https://via.placeholder.com/15/ff0000/000000?text=+) `TFT_RED` |
| `&2` | Sets the color to ![#00ff00](https://via.placeholder.com/15/00ff00/000000?text=+) `TFT_GREEN` |
| `&3` | Sets the color to ![#0000ff](https://via.placeholder.com/15/0000ff/000000?text=+) `TFT_BLUE` |
| `&4` | Sets the color to ![#000000](https://via.placeholder.com/15/000000/000000?text=+) `TFT_BLACK` |
| `&5` | Sets the color to ![#ffffff](https://via.placeholder.com/15/ffffff/000000?text=+) `TFT_WHITE` |
| `&6` | Sets the color to ![#888888](https://via.placeholder.com/15/888888/000000?text=+) `TFT_GREY` |
| `&0` | Restores original color (previously set with `tft.setTextColor()` |
| `&&` | Prints single `&` character without changing anything else |