Creates an instance of Shape.
The name of the shape.
The attributes required for drawing the shape.
The styling information to be used before drawing the shape.
Other shapes that are drawn relative to the current instance of Shape.
Repeats the current shape n
times by applying transform
iteratively.
A positive integer representing the number of times a shape is to be repeated.
An instance of Transformation that is applied every time the shape is repeated.
The current instance of Shape for chaining.
Displays a shape. Steps performed for display are as follows.
Optional
r: DrawableAn instance of Drawable.
Applies a Translate transformation to the current Shape instance.
Amount to translate along the positive x-axis. Defaults to 0
.
Amount to translate along the positive y-axis. Defaults to 0
.
The current instance of Shape for chaining.
Represents a 2D shape.