Random Rotation
Posted: Sat Aug 11, 2007 7:53 pm
The code on the design ideas page for random rotation seems a little complicated. I was talking with TroulCortex and he suggested this:
Is there a difference in results or performance?
Code: Select all
startshape Begin
background { h 200 sat 1 b 1 }
rule DrawArrow {
SQUARE { x 0.5 size 1 0.075 }
TRIANGLE { x 1 r 30 size 0.2 }
}
rule RandomRotate 360 { RandomRotate {r 1}}
rule RandomRotate {DrawArrow{}}
rule DrawRandomArrows { 30*{ b -0.05 z 1 } RandomRotate { } }
rule Begin { DrawRandomArrows { h 240 sat 1 b 1 } }