High Expansion Fur

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
odinsdream
Posts: 12
Joined: Sat Jul 09, 2005 2:18 pm

High Expansion Fur

Post by odinsdream »

Code: Select all

startshape SCENE

rule SCENE{
	LINE{}
}

rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 2}
	LINE { x  2 s 0.8 r -4}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 6}
	LINE { x  2 s 0.8 r -8}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 1}
	LINE { x  2 s 0.8 r -1}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 12}
	LINE { x  2 s 0.8 r -5}
}
rule LINE {
	CIRCLE{}
	LINE {x -2 s 0.8 r 20}
	LINE { x  2 s 0.8 r -26}
}
Any way to optimize this and still get similar results?

robo git
Posts: 47
Joined: Sat Jul 09, 2005 11:36 pm
Location: looking for his marbles
Contact:

Post by robo git »

About the only obvious one I can see is this:

Code: Select all

startshape SCENE

rule SCENE{
   LINE{}
}

rule LINE { 
....

can be done like this:

Code: Select all

startshape LINE

rule LINE { 
....
Pretty much anything else would remove some of the detail from the image.

On the other hand, you could add a very low probability "terminating" rule to statistically speed things up, eg:

Code: Select all

rule LINE 0.05 {
   CIRCLE {}
}
(the call to CIRCLE is optional)

Post Reply