Rose

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
vino
Posts: 1
Joined: Sat Aug 06, 2005 12:08 pm

Rose

Post by vino »

Based on MtnViewMark post in http://chriscoyne.com/cfdgforums/viewtopic.php?t=11
i played a little and the result is right here:

Code: Select all

startshape ROSE 

rule ROSE {
 ROTATE_LEAF {}
 ROSE {x 1 y -.2 r 65 s 0.9 b 0.01}
}


rule ROTATE_LEAF {SIZE_LEAF {r 0} }
rule ROTATE_LEAF {SIZE_LEAF {r -5} }
rule ROTATE_LEAF {SIZE_LEAF {r 5} }

rule SIZE_LEAF {LEAF {s 1}}
rule SIZE_LEAF {LEAF {s 0.8}}
rule SIZE_LEAF {LEAF {s 1.2}}

rule LEAF {
 LEAF_SHAPE{}
 LEAF_SHAPE2{s 0.98 b 1}
}

rule LEAF_SHAPE2 { 
   ARM { r 0 } 
   ARM { r 120 } 
   ARM { r -120 } 
} 


rule LEAF_SHAPE{ 
   CIRCLE {x 0 y 0 s 1 b 1}
   ARM2 { r 0 } 
   ARM { r 120 } 
   ARM { r -120 } 
} 

rule ARM { 
   CIRCLE { } 
   ARM {r 5 x 0.1 y 0.1 s 0.85 } 
} 

rule ARM2 { 
   CIRCLE { } 
   ARM2 {r 5 x 0.1 y 0.1 s 0.85 b 0.2} 
} 

shevegen
Posts: 57
Joined: Wed Jul 06, 2005 5:38 am

Post by shevegen »

Nice , looks like a pencil sketch

Post Reply