Examples
tint.zig includes comprehensive examples demonstrating all features.
Available Examples
| Example | Description |
|---|---|
| Basic | Simple colored output |
| ANSI 16 | Full ANSI 4-bit palette |
| Bright Colors | Bright ANSI colors |
| ANSI 256 | 256-color palette |
| RGB / TrueColor | 24-bit RGB color |
| HEX Colors | HEX color support |
| HSL Colors | HSL color space |
| HSV Colors | HSV color space |
| CMYK | CMYK print colors |
| Color Temperature | Kelvin to RGB |
| Color Manipulation | Lighten, darken, mix |
| Color Harmony | Complementary, triadic |
| Color Analysis | Luminance, contrast |
| Styles | Text attributes |
| Presets | Built-in preset styles |
| Underline Color | Colored underlines |
| Palettes | Palette access |
| Themes | Theme usage and custom themes |
| Themes Extended | All 17 themes |
| Gradient | Gradient text via lerp, fade, palette primitives |
| Composition | Style composition |
| Complete Demo | Full feature demonstration |
Running Examples
bash
zig build run-basic
zig build run-complete