How can I randomize this

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
ladykassie
Posts: 17
Joined: Tue Dec 13, 2005 4:36 am

How can I randomize this

Post by ladykassie »

Just wondering how to randomize this:

startshape SCENE
background { b -1 }

rule SCENE { NEURAL { hue 70 sat 0.9 b 0.9 }}




rule NEURAL {

TRIANGLE { s 0.5 10 x 3 y -0.1 r -90}
TRIANGLE { s 0.5 10 x 3 y -0.1 r -180}
TRIANGLE { s 0.5 10 x 3 y -0.1 r -0}
TRIANGLE { s 0.5 10 x 3 y -0.1 r 90}

Swirl { x 3 r 20 s 0.8 }
Swirl { x 3 r 20 s 0.8 }
BackSwirl { x -3.9 y -7.9 r 90}
CIRCLE { x 20 y 5 s 4 b 0.8 }
CIRCLE { s .5 r 90}


}

rule Swirl {
Line { }
Swirl { x 3 r 90 s 0.8 }
CIRCLE { x 19 y 45 s 4 b 0.8 }
CIRCLE { x 19 y 45 s 4 b 0.8}
}
rule Swirl {
Line { }
Swirl { x 3 r 90 s 0.8 }
CIRCLE { x 19 y 45 s 4 b 0.8 }
}






:: thanks..

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

You could try some randomizing rules for shape SCENE:

Code: Select all

rule SCENE { NEURAL { hue 70 sat 0.9 b 0.9 }
SCENE { s 0.8 x 5 y 5}} 
rule SCENE { NEURAL { hue 70 sat 0.9 b 0.9 }
SCENE { s 0.8 x -5 y 5}} 
rule SCENE { NEURAL { hue 70 sat 0.9 b 0.9 }
SCENE { s 0.8 x 5 y -5}} 
rule SCENE { NEURAL { hue 70 sat 0.9 b 0.9 }
SCENE { s 0.8 x -5 y -5}} 
You could add more rules to rotate the SCENE, skew it, reflect it, etc.

Post Reply