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

Thursday, 29 October 2009

Fiery? random walk

fiery.cfdg
   1 startshape walk // a random walk
   2 
   3 background{b -1}
   4 
   5 rule walk{ // target yellow, increment by .16
   6 1000*{|hue 60}step{hue .16|}
   7 }
   8 
   9 rule step 30{
  10 step {x .5 y (sin(30) / sqrt(3)) r 60}
  11 }
  12 
  13 rule step 30{
  14 step{x -.5 y (sin(30) / sqrt(3)) r 60}
  15 }
  16 
  17 rule step 5{
  18 step{y (-1/sqrt(3)) r 60}
  19 }
  20 
  21 rule step {
  22 triangle{b .9 sat .9}
  23 } 
  24  
  25 path triangle {
  26     MOVETO {x -0.5 y (sin(-30) / sqrt(3))}
  27     3* {r 120} {
  28         CURVEREL {x 0.5 x1 0.25 y1 0.2}
  29         CURVEREL {x 0.5}
  30     }
  31     CLOSEPOLY {p align}
  32     FILL{}
  33     STROKE{width .01 b -1}
  34  }
 

 

3 comments:

  1. I really like this one. It would look superb as an animation.

    b e n

    ReplyDelete
  2. I like it, too. It's either expanding or exploding, I can't decide which! I agree, it would look good as an animation as well.

    ReplyDelete
  3. About a year later I finally animated it!!!

    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