Class representing a hat (version 02) using procedural generation.
Constructs a Hat02 instance.
The starting point of the line segment.
The ending point of the line segment.
Optional
Indicates whether to horizontally flip the hat.
An array of Elements.
Adds an object to the elements array.
The object to be added to this.elements
Adds an object at the beginning of elements array. This way object will be rendered first, thus being a background.
Class representing a hat (version 02) using procedural generation.