Skip to content

Examples

tint.zig includes comprehensive examples demonstrating all features.

Available Examples

ExampleDescription
BasicSimple colored output
ANSI 16Full ANSI 4-bit palette
Bright ColorsBright ANSI colors
ANSI 256256-color palette
RGB / TrueColor24-bit RGB color
HEX ColorsHEX color support
HSL ColorsHSL color space
HSV ColorsHSV color space
CMYKCMYK print colors
Color TemperatureKelvin to RGB
Color ManipulationLighten, darken, mix
Color HarmonyComplementary, triadic
Color AnalysisLuminance, contrast
StylesText attributes
PresetsBuilt-in preset styles
Underline ColorColored underlines
PalettesPalette access
ThemesTheme usage and custom themes
Themes ExtendedAll 17 themes
GradientGradient text via lerp, fade, palette primitives
CompositionStyle composition
Complete DemoFull feature demonstration

Running Examples

bash
zig build run-basic
zig build run-complete

Released under the MIT License.