Skip to main content

What is the Tint System?

When applications output colors to your terminal, those colors need to match your theme. The Tint System transforms arbitrary colors in real-time while preserving their relationships.

The Transform Pipeline

Every color passes through seven transformation steps.

Physics Metaphors in Color

The Tint System borrows concepts from physics to make color transformation intuitive.

Two Coordinate Systems

Colors live in two different mathematical spaces, each suited for different operations.

The Four Parameter Groups

The Tint System is controlled by four groups of parameters.

Performance Architecture

Color transforms happen thousands of times per second. Caching makes this fast.

Data Flow Example

Watch a color transform step by step.

Key Takeaways

  1. Colors transform in real-time - Every terminal color passes through the 7-step pipeline
  2. Physics metaphors explain behavior - Frame Drag pulls colors toward tint, Einstein Arc bends colors around anchor
  3. Two coordinate systems work together - Polar (OKLCH) for identity, Cartesian (OKLAB) for smooth transitions
  4. Parameters are human-friendly - Degrees and percentages, not radians and decimals
  5. Caching ensures performance - Less than 1 microsecond per cached transform

Parameters

Learn about the four parameter groups