Merry Christimas 2011
I didn’t really have an excuse not to make some sort of Christmas art this year. My most recent project – Lsystems.js is perfectly suited for making fractals such as snowflakes. The snowflake L-system was created by simply modifying an existing tree preset.

presets["Snowflake"] = {
axiom:"X+X+X+X+X+X",
generations:5,
angle:60,
startingAngle:-90,
stepSize:5,
position:{x:0, y:0},
commandsMap:{"F":"drawForward", "+":"turnLeft", "-":"turnRight", "[":"pushState", "]":"popState"},
rules:[{production:"X", sucessor:["[F[+X][-X]FX]"]}, {production:"F", sucessor:["FF"]}]
};
Leave a Reply