OkHsv class

Constructors

OkHsv({required double h, required double s, required double v, double alpha = 1})
const
OkHsv.fromColor(Color color)
factory
OkHsv.fromHsv(OkHSV hsv)
factory
OkHsv.fromHue(Hue hue, List<OkHsv> colors)
factory

Properties

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

Methods

darker(double percentage) OkHsv
duller(double percentage) OkHsv
hueCircle([int count = 12]) List<OkHsv>
lighter(double percentage) OkHsv
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
richer(double percentage) OkHsv
rotateAbsolute(double angle) OkHsv
rotateRatio(double percentage) OkHsv
rotateTo(double angle) OkHsv
toColor() Color
toHsv() OkHSV
toString() String
A string representation of this object.
inherited
withAlpha(double alpha) 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

Constants

hues → const Map<Hue, int>