Generates a twig with branches and leaves.
X-coordinate of the twig base.
Y-coordinate of the twig base.
Depth of the twig branches.
Optional
angle: number = 0Initial angle of the twig.
Optional
scale: number = 1Scale factor of the twig.
Optional
direction: number = 1Direction of the twig branches.
Optional
strokeWidth: number = 1Width of the twig branches.
Optional
leaves: number = 12Number of the leaves.
An array of Elements.
Class representing a generator for a twig with branches and leaves.