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, 12 June 2009

Another Nautilus? Spiral


Something I modified/stole off the web was done using triangles I think it looks better with circles (also I've used longform for rotate and size rather than r & s)

code:

startshape START

rule START
{
   SPIRAL{rotate 140}
   SHADOW{x 0.08 y -0.08 rotate 140 sat 0.2 b 0.4 alpha -0.96 z -1// slight offset to shadow
}

rule SPIRAL
{
        CIRCLE{}
        CIRCLE{x 0.02 y 0.02}
        CIRCLE{x 0.04 y 0.04}
        CIRCLE{sat 0.4 rotate 1.0 b 1.0 size 0.95}
        CIRCLE{sat 0.2 rotate 1.0 b 1.0 size 0.90}
        CIRCLE{sat 0.1 rotate 1.0 b 1.0 size 0.75}
        SPIRAL[hue 6.4 y 0.578 rotate 10.0 y -0.578 size 0.98]
}

rule SPIRAL
{
        CIRCLE{}
        CIRCLE{x 0.02 y 0.02}
        CIRCLE{x 0.04 y 0.04}
        CIRCLE{sat 0.5 rotate 1.0 b 1.0 size 0.95}
        CIRCLE{sat 0.4 rotate 1.0 b 1.0 size 0.90}
        CIRCLE{sat 0.2 rotate 1.0 b 1.0 size 0.75}
        SPIRAL[hue -6.4 y 0.578 rotate 10.0 y -0.578 size 0.98 z 0.03]
}

rule SHADOW
{
        CIRCLE{}
        CIRCLE{x 0.02 y 0.02}
        CIRCLE{x 0.04 y 0.04}
        SHADOW[y 0.578 rotate 10.0 y -0.578 size 0.98]
}

No comments:

Post a Comment

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