docfx/apispec/namespace-drawing.md
The Drawing namespace provides visual styling, color management, and drawing primitives for Terminal.Gui.
Color[,] pixels as Kitty graphics APC sequencesColor[,] pixels as Sixel DCS sequences// Named colors
Color red = Color.Red;
// TrueColor (24-bit RGB)
Color custom = new (128, 64, 255);
// Create an attribute
Attribute attr = new (Color.White, Color.Blue);
ImageView and the driver output layer use Drawing encoders and support detectors to render raster images. Kitty graphics is preferred when available; Sixel is the fallback for terminals that support Sixel but not Kitty. Terminals that support neither protocol render ImageView content with colored cells.
Schemes map semantic roles to visual attributes:
| Role | Purpose |
|---|---|
| Normal | Default appearance |
| Focus | Focused view |
| HotNormal | Hotkey indicator |
| Disabled | Disabled state |