Style Colors Example
Demonstrates high-fidelity color support.
Terminals support millions of colors. This example generates a mathematically precise HSL gradient to prove the rendering engine’s color fidelity.
Features Demonstrated
-
HSL to RGB Conversion: generating smooth color gradients programmatically.
-
TrueColor Support: Rendering arbitrary HEX colors.
Hotkeys
-
q / Ctrl+c: Quit
Usage
ruby examples/widget_style_colors/app.rb
Learning Outcomes
Use this example if you need to…
-
Create meaningful heatmaps.
-
Generate color palettes dynamically.
-
Test your terminal’s color support capabilities.
