Rough cut of the basic scene and model hierarchy. Notable files as follows:
Scene: sets up a WebGL context.
DynamicModel: base class for a "dynamic" model which in this case means a model with procedurally generated geometry. The random generation is based on a given seed value, so can be persistent if that's what you want
Petal: A sub-class of DynamicModel that generates a leaf-shaped mesh and colors it from red to green away from the spine.
Curves Implements Bezier curves, both quadratic and cubic (two cubic curves are the basis for the shape of each leaf)
rand Implements a linear congruental random number generator with the ability to set a given seed