const virtual class vaseGraphics::GradientStop

sys::Obj
  vaseGraphics::GradientStop

@Js

GradientStop is used with Gradient to model a color stop.

color

const Color color

Color 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 pos

Position of the stop within range (0f..1f)

toStr

virtual override Str toStr()

Return stop formatted as "{color} {pos}".