logo

const class

fwt::Gradient

sys::Obj
  fwt::Gradient : fwt::Brush

Fills a shape using a two color linear gradient.

Slots

equals

override Bool equals(Obj obj)

Equality is based on fields.

Source

hash

override Int hash()

Hash the fields.

Source

makeLinear

static Gradient makeLinear(Point p1, Color c1, Point p2, Color c2)

Construct a two color linear gradient between the two points.

Source

toStr

override Str toStr()

Return "[point1:color1; point2:color2]". This string format is subject to change.

Source