Fantom

 

const class

gfx::GradientStop

sys::Obj
  gfx::GradientStop

@Js

GradientStop is used with Gradient to model a color stop.

Slots

colorSource

const Color color

Color for the stop

equalsSource

override Bool equals(Obj? obj)

Overrides sys::Obj.equals

Equality is based on fields.

hashSource

override Int hash()

Overrides sys::Obj.hash

Hash the fields.

makeSource

new make(Color color, Float pos)

Construct with color, pos, and unit.

posSource

const Float pos

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

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

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