getColor1
getColor1: (GradientPaint) -> ColorThe first colour.
GradientPaint.new(…)| Method | Returns | Description |
|---|---|---|
getColor1() | Color | The first colour. |
getColor2() | Color | The second colour. |
isCyclic() | boolean | Whether it repeats. |
new(number, number, Color, number, number, Color) | GradientPaint | (number, number, Color, number, number, Color) -> GradientPaint: From (x1, y1) in c1 to (x2, y2) in c2, not cyclic. |
new(number, number, Color, number, number, Color, boolean) | GradientPaint |
| Method | Returns | Description |
|---|---|---|
GradientPaintClass.new | GradientPaint | (number, number, Color, number, number, Color) -> GradientPaint: From (x1, y1) in c1 to (x2, y2) in c2, not cyclic. |
getColor1getColor1: (GradientPaint) -> ColorThe first colour.
getColor2getColor2: (GradientPaint) -> ColorThe second colour.
isCyclicisCyclic: (GradientPaint) -> booleanWhether it repeats.
newnew: ((number, number, Color, number, number, Color) -> GradientPaint) & ((number, number, Color, number, number, Color, boolean) -> GradientPaint)(number, number, Color, number, number, Color) -> GradientPaint: From (x1, y1) in c1 to (x2, y2) in c2, not cyclic.
(number, number, Color, number, number, Color, boolean) -> GradientPaint: As new, cyclic or not.