const class gfx::GradientStop
sys::Obj gfx::GradientStop
@Js
GradientStop is used with Gradient to model a color stop.
- color
-
const Color colorColor for the stop
- equals
-
virtual override Bool equals(Obj? obj)Equality is based on fields.
- hash
-
virtual override Int hash()Hash the fields.
- make
-
new make(Color color, Float pos)Construct with color, pos, and unit.
- pos
-
const Float posPosition of the stop within range (0f..1f)
- toStr
-
virtual override Str toStr()Return stop formatted as "{color} {pos}".