-
Name Type Description color
Color | ColorLike | PatternDescriptor | null (defaults to null) A color, gradient or pattern. See
Color
andColorLike
for possible formats. For polygon fills (not forRegularShape
fills), a pattern can also be provided asPatternDescriptor
. Default null; if null, the Canvas/renderer default black will be used.
Methods
-
Clones the style. The color is not cloned if it is a
ColorLike
.Returns:
The cloned style.
-
Get the fill color.
Returns:
Color.
-
Set the color.
Name Type Description color
Color | ColorLike | PatternDescriptor | null Color.