Here is a program I've been working on for a few weeks that has a lot of comments for people learning processing. You can play with some settings in the beginning as well to get different results, or comment out some of the drawing functions. Enjoy.
It's not clean or beautiful code, but at the least maybe someone out there will run it then start playing around with different results.
import processing.pdf.*;
/*
Snowflake
A fractal branching program by mkanemoto
Processing 2.0b7, Feb 22, 2013
This is built for a single PDF output per run. The PDFs are "grainy" as heck. I run them then
if I like the rough view in the PDF I produce the raster files by importing the PDF into Photoshop.
println("node, int branchPosition, int nodePosition, int parentReference, int nodeNumber, float nodeRadius, float theta, float x, float y, String action");
}
if (randomNumberNodes == false) {
// First Node
//int int branchPosition, int nodePosition, int parentReference, int nodeNumber, float nodeRadius, float theta, float x, float y, String action
if (node[node[i-1].getParentReference()].getNodePosition() < node[node[node[i-1].getParentReference()].getParentReference()].getNodeNumber()) { // if parent is not max node
if (maxLevelFlag == true && maxNodeFlag == true) {
if (node[node[i-1].getParentReference()].getNodePosition() == node[node[node[i-1].getParentReference()].getParentReference()].getNodeNumber()) { // if parent is max node