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

Targeting a color (and some hexagon tiling)

   1 startshape start
   2 
   3 background{b -1}
   4 
   5 rule start{
   6  7*{y (sin(30)*12) |hue 135}{ // target green
   7  5*{x (cos(30)*12)}{
   8  rosette2{b 1 hue .4|} // increment hue by .4
   9  }
  10 }
  11 }
  12 
  13 rule rosette2{
  14 rosette{}
  15 rosette{x (cos(30)*6) y (sin(30)*6)}
  16 }
  17 
  18 rule rosette{ 
  19 6*{r 60}hexagon{y 2 b .1 sat .1}
  20 }
  21 
  22 path hexagon{
  23 MOVETO{x (cos (30)) y (sin(30))}
  24 6*{r 60}{
  25 LINETO{y 1}
  26 }
  27 CLOSEPOLY{p align}
  28 STROKE{width 0.04 b -1}
  29 FILL{b 1 sat 1}
  30 }


1 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