Skip to main content

Concept Overview

Hue Warp (also called Anchor Pull) is a technique that compresses or warps colors in a specific hue region, creating theme harmony by making all colors “arc around” the theme’s core color - like light bending around a massive object.

Core-Flow Classification

This is where FLOW appears in the Tint System! The gradient fill inside the Caustic region uses OkLab linear interpolation, exactly matching the Gestalt principle: “Flow Colors use OKLAB for smooth transitions.”

Pull Parameters

pullComplementary

Defines the offset from the complementary hue to establish the Pull Center.

pullWidth

The half-width of the Caustic region.

pullStrength

The intensity of compression.

pullMode

Algorithm selection for Hue Warp.

Algorithm Implementation

warp_hue_compress (CORE)

The core compression function that operates in polar space:
The algorithm diagram above describes the complete logic. The implementation follows standard circular arithmetic with zone-based compression and expansion.

fill_with_oklab_gradient (FLOW)

The gradient fill that operates in cartesian space:
The algorithm converts Polar boundaries to Cartesian OkLab coordinates, then performs linear interpolation in Cartesian space to avoid muddy intermediate colors. See the diagram above for the complete flow.

OkLab vs Hue Interpolation

The key insight of Mode 2 (compressGradient) is using FLOW (OkLab) inside the zone instead of CORE (hue) interpolation.

Decision Flow

THE CENTER

How Hue Warp Helps Humans Parse Information

The Hue Warp algorithm is essential to Core-Flow’s mission of using color for information clarity.
The dual CORE+FLOW approach ensures that:
  • CORE defines WHERE to transform (the zone boundaries)
  • FLOW defines HOW to transform smoothly (OkLab interpolation)
This combination creates theme harmony without destroying the semantic meaning of colors.

Hue Inheritance System

Learn how anchor hue propagates to UI elements through inheritance