Recently I've been looking at Povray, pyprocessing, and cfdg (version 3.0) as tools for creating digital images. I have branched two separate blogs where I mainly explore jruby + processing and processing.py

Friday, 19 June 2009

Just Do It Style of Art

Taking the unpromising rule from my previous example add another recursive rule with a bit of x and y displacement and wow! I didn't see that coming, something a bit astronomical Large Magellanic cloud? lazydog will have a name for it:-


heres the code:

startshape iris
background {b -1 }
rule iris {
draw{ hue 180 sat .5 }
}

rule draw {
CIRCLE{ b +1 hue 200}
SQUARE{s .5 b +1 x 2}
draw{r 10 s +1 hue -1 x +.2}
}

rule draw {
draw{x 1 y 1}
}

// ensure we terminate
rule draw .0001{}

1 comment:

  1. Looks like The Scorpion King to me!
    I haven't had time to play around with CF yet but it looks great - more fun than Processing!

    b e n

    ReplyDelete

Followers

Blog Archive

About Me

My photo
Pembrokeshire, United Kingdom
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2