Fills a shape using a two color linear gradient.
Slots
-
const internal Color c1 -
const internal Color c2 - 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.
-
new make() - makeLinearSource
-
static Gradient makeLinear(Point p1, Color c1, Point p2, Color c2)Construct a two color linear gradient between the two points.
-
const internal Point p1 -
const internal Point p2 - toStrSource
-
override Str toStr()Overrides sys::Obj.toStr
Return
"[point1:color1; point2:color2]". This string format is subject to change.