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