Enum HuePath

Chooses how OKLCH interpolation travels between two hue angles.

enum HuePath : ubyte { ... }

Use shorter for the shortest arc, longer for the complementary arc, or increasing/decreasing when angular direction matters. The policies follow CSS-style angular interpolation semantics; raw stored hue is not an interpolation policy.

HuePath.init is HuePath.shorter. This is a valid interpolation policy and is part of the public value-type contract.

Enum members

NameDescription
decreasing Move hue in the decreasing-angle direction.
increasing Move hue in the increasing-angle direction.
longer Follow the longer angular arc between endpoint hues.
shorter Follow the shorter angular arc between endpoint hues.