Random branching spirals

If you have a design you're proud of, share the cfdg file here. It's also a good place to ask for feedback and collaborate.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
minaguib
Posts: 1
Joined: Fri Jul 08, 2005 7:37 am
Location: Montreal
Contact:

Random branching spirals

Post by minaguib »

Wrote this on the bus on the way home last night after downloading CF that afternoon:

Code: Select all

startshape spiral


rule spiral {
	spiral_r{}
}

rule spiral {
	spiral_l{}
}

rule branchspiral_l 200 {
}

rule branchspiral_l {
	spiral_l{}
}

rule branchspiral_r 200 {
}

rule branchspiral_r {
	spiral_r{}
}

rule spiral_r {
	CIRCLE { s 0.6 }
	spiral_r {
		x 0.3
		s 0.995
		r -1
	}
	branchspiral_l{}
}


rule spiral_l {
	CIRCLE { s 0.6 }
	spiral_l {
		x -0.3
		s 0.995
		r -1
	}
	branchspiral_r{}
}

Interpolation NEO for example:
Image

User avatar
LaT3x
Posts: 68
Joined: Wed Jul 06, 2005 3:11 pm
Location: Madrid, Spain

Post by LaT3x »

sweet and delicius

Post Reply