A 2D array representing terrain's elements with their points.
A function that generates vegetation elements at a given location.
A function that determines whether vegetation should grow at a specific point based on the indices.
A function that determines additional conditions for vegetation growth based on the array of potential vegetation points and an index.
The target ComplexSvg element where the generated vegetation elements are to be added.
Generate vegetation elements based on specified growth and proof rules.