Add minimal PixmapPresenter example

This commit is contained in:
Elias Batek 2023-12-24 00:16:53 +01:00
parent 61e7df3e44
commit a4ed17e0a1

View file

@ -72,6 +72,16 @@
}
---
### Minimal example
---
void main() {
auto pmp = new PixmapPresenter("My Pixmap App", Size(640, 480));
pmp.framebuffer.clear(rgb(0xFF, 0x00, 0x99));
pmp.eventLoop();
}
---
### Advanced example
---