My first work just tell me what you think

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
Manuelrf
Posts: 1
Joined: Sun Jul 10, 2005 10:27 pm
Location: usa pa
Contact:

My first work just tell me what you think

Post 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 } 
} 

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

Post 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

Post Reply