Page 1 of 1

How can I randomize this

Posted: Thu Jan 05, 2006 9:07 pm
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..

Posted: Fri Jan 06, 2006 10:25 am
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.