Struct OklabHue
Stores an Oklab-family hue in degrees.
struct OklabHue(T)
if (is(T == float) || is(T == double));
Use the normalized views when an algorithm needs a conventional angular interval. The stored value itself remains raw and may contain any number of complete revolutions.
T must be float or double. The natural value contains
NaN and is not a usable hue.
Properties
| Name | Type | Description |
|---|---|---|
positiveDegrees[get]
|
T | Returns the equivalent hue from 0 degrees inclusive to 360 degrees exclusive. |
radians[get]
|
T | Returns the raw stored hue converted to radians. |
rawDegrees[get]
|
T | Returns the stored degree value without normalization. |
signedDegrees[get]
|
T | Returns the equivalent hue above -180 degrees and at most 180 degrees. |
Methods
| Name | Description |
|---|---|
fromDegrees
(value)
|
Constructs an Oklab-family hue from a raw degree value. |
Aliases
| Name | Description |
|---|---|
Scalar
|
Scalar component type. |