Page 1 of 1

My first work just tell me what you think

Posted: Sun Jul 10, 2005 10:45 pm
by Manuelrf
here is the :lol:

Code: Select all


startshape dot-spiral 

rule dot-spiral { 
 circlering { } 
 dot-spiral {s 0.95 r 31.3 x 0.3} 
} 
rule circlering { 
subcirclering {r 5}
} 
rule subcirclering { 
 arm {r 30}
} 

rule arm { 
 ball {x 15 s 1.1 } 
} 

rule ball { 
 CIRCLE {s 1.1 } 
} 

Posted: Mon Jul 11, 2005 12:07 am
by robo git
Suggestion: Rather then rotating, rotating again and then positioning the ball, resizing, and resizing again when you draw the circle, you can achieve the same effect with only two rules

Code: Select all

startshape SceneStart

rule SceneStart {
   dot-spiral { r 35.8 }
}

rule dot-spiral {
 CIRCLE { x 15 s 1.2 }
 dot-spiral {s 0.95 r 31.3 x 0.3}
}
indeed the "SceneStart" rule is not actually needed if you're not fussy about the starting place of the spiral.

You are falling across the same trap that I fell for when I first encountered CFDG: I was (and you are) 1) Trying to rotate a circle around itself (which is meaningless, as it's a circle, after all) and 2) I need to make things less unnecessarily complex (AKA: Why use 2 rules when 1 will do?) as this also minimises the number of computations that the scene takes to render.

Welcome to context free: At times it's fustrating, but it's mainly fun.

And addictive... We can't forget the addictive part.... ;)

Cheers!
-Trav