OkHsv class

Represents a color in the HSV (Hue, Saturation, Value) color space. h: Hue, in range 0, 1 representing 0 to 360 degrees s: Saturation, in range 0, 1 v: Value, in range 0, 1 Example usage: HSV hsv = srgbToOkhsv(RGB(0.5, 0.5, 0.5)); // Saturation and Value are used in calculations: double L_v = 1 - hsv.s * S_0 / (S_0 + T_max - T_max * k * hsv.s); double L = hsv.v * L_v;

Constructors

OkHsv(double h, double s, double v)
OkHsv.fromColor(Color color)
factory

Properties

h double
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s double
final
v double
final

Methods

analogous({int count = 2, double angle = 30}) List<OkHsv>
complementary() OkHsv
copyWith({double? h, double? s, double? v, double? alpha}) OkHsv
darker(double percentage) OkHsv
desaturate(double percentage) OkHsv
lighter(double percentage) OkHsv
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotated(double degrees) OkHsv
saturate(double percentage) OkHsv
shades({int count = 5}) List<OkHsv>
splitComplementary() List<OkHsv>
tetradic() List<OkHsv>
tints({int count = 5}) List<OkHsv>
toColor() Color
toString() String
A string representation of this object.
inherited
triadic() List<OkHsv>
withHue(double hue) OkHsv
withSaturation(double saturation) OkHsv
withValue(double value) OkHsv

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(OkHsv start, OkHsv end, double fraction, {bool shortestPath = true}) OkHsv