# About the library

`roo_display` is a feature-rich, fast, and easy to use library intended for building 'smart home' and similar controllers with graphical UI and optionally touch control.

## Highlights

* Text: anti-aliasing, kerning, zero-flicker, FreeType-style alignment, font metrics, UTF-8, formatting;
* Fonts: collection of Google Noto Sans, Serif, and Mono fonts in various styles (regular, bold, condensed, italic, combinations), and multiple sizes included. Extended alphabet. Font import tool available;
* Shapes: variety of basic and anti-aliased shapes including filled and stroked circles, round-rectangles, triangles, wedges, pies, trapezoids, lines, and arcs, with specified widths and rounded or flat endings;
* Offscreen: supports drawing to memory buffers, using a rich variety of color modes (ARGB 8888, RGBA 8888, RGB 888, ARGB 6666, ARGB 4444, RGB 565, Gray8, Gray4, GrayAlpha8, Alpha8, Alpha4, Indexed8, Indexed4, Indexed2, Indexed1);
* Images: JPEG, PNG; custom RLE-encoded as well as uncompressed PROGMEM-compatible image formats, supporting variety of color modes (same as above); image import tool available;
* Icons: includes a collection of over 34000 Google Material Icons, divided into 4 styles, 18 categories, and 4 sizes;
* Positioning: flexible alignment options, magnification / stretch, rotation;
* Clipping: clip rectangles, clip masks;
* Color: internal 32-bit ARGB; transparency, alpha-blending, alpha-compositing, 140 named HTML colors; multi-node color gradients: linear, radial, angular;
* Compositing: backgrounds, overlays (sprites), zero-flicker, memory-conservative Porter-Duff and blending modes;
* Touch: excellent quality drivers with noise filtering and smoothing; supports multi-touch on compliant devices;
* Extensibility: clean abstractions, including drawable objects, device drivers, fonts; supports arbitrary extensions (e.g. user-defined drawables, third-party drivers) as first-class entities;
* Excellent performance: highly optimized SPI transport, vectorized interfaces;
* Low footprint: memory-conscious implementation;
* Documentation: comprehensive [programming guide](https://github.com/dejwk/roo_display/blob/master/doc/programming_guide.md);
* See also: a companion [roo_windows](https://github.com/dejwk/roo_windows) library for building complex touch-based UI applications with scroll, animation, etc.

## Compatibility

* Supported SPI display drivers: ILI9341, ILI9486, ILI9488, SSD1327, ST7735, ST7789, ST7796s;
* ESP32S3 DMA parallel driver harness;
* Adapter driver for TFT_eSPI-supported displays;
* Supported touch drivers: XPT2046, FT6x36, GT911;
* Supported integrated devices (microcontroller + touch display): LilyGo T-Display-S3, Makerfabs: 3.5in, 4.3in, 5in, and 7in, ILI9488 SPI-based capacitive touch combo; 4.3in, parallel DMA-based capacitive touch combo.

## Gallery

![img2](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img2.png)
![img9](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img9.png)
![img10](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img10.png)
![img18](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img18.png)
![img21](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img21.png)
![img22](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img22.png)
![img25](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img25.png)
![img29](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img29.png)
![img30](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img30.png)
![img31](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img31.png)
![img32](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img32.png)
![img35](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img35.png)
![img42](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img42.png)
![img43](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img43.png)
![img45](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img45.png)
![img48](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img48.png)
![img49](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img49.png)
![img50](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img50.png)
![img51](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img51.png)
![img52](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img52.png)
![img54](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img54.png)
![img56](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img56.png)
![img58](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img58.png)
![img59](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img59.png)
![img60](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img60.png)
![img61](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img61.png)
![img62](https://raw.githubusercontent.com/dejwk/roo_display/master/doc/images/img62.png)

## User documentation

* [Programming guide](https://github.com/dejwk/roo_display/blob/master/doc/programming_guide.md).
* [Quick start for TFT_eSPI](https://github.com/dejwk/roo_display/blob/master/doc/for_tft_espi_users.md) users.
