const class gfx::GradientStop

sys::Obj
  gfx::GradientStop

@Js

Source

GradientStop is used with Gradient to model a color stop.

color

const Color color

Source

Color for the stop

equals

virtual override Bool equals(Obj? obj)

Source

Equality is based on fields.

hash

virtual override Int hash()

Source

Hash the fields.

make

new make(Color color, Float pos)

Source

Construct with color, pos, and unit.

pos

const Float pos

Source

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

toStr

virtual override Str toStr()

Source

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