Function OklabHue.fromDegrees

Constructs an Oklab-family hue from a raw degree value.

static OklabHue fromDegrees(
  T value
) pure nothrow @nogc @safe;

No normalization is performed.

Parameters

NameDescription
value Raw hue in degrees.

Returns

A hue storing value unchanged.

Example

const hue = OklabHued.fromDegrees(390.0);
assert(hue.rawDegrees == 390.0);