Polygon¶
-
class img_gen.Polygon(color: ColorKind, border: Border | None =
None, sides: PolygonSides =PolygonSides.regular(3), rotation: float =0.0)¶ –
An attribute to represent a [
Polygon] rendered in the layer.- border¶
The border (if specified) ro render around the polygon.
- color¶
The color used to fill the polygon.
- rotation¶
The rotation applied to the rendered polygon.
Does not affect
PolygonSides.Irregular.
- sides¶
The polygon side definition.
Regular polygons use a side count, while irregular polygons use explicit vertex offsets.