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

Monday, 2 November 2009

Colorful wig (or Pythagoras tree variant)

wig.cfdg

   1 startshape wig
   2 background{b -1}
   3 rule wig
   4 {
   5 oblong{b .8 sat .8}
   6 2* {y .5 x -.25 r -90 |h 220}
   7  wig{r 30  y 1 x -.25 s .707 h 6|}
   8 }
   9 
  10 path oblong{
  11 MOVETO{x -.25 y -.5}
  12 LINETO{x .25 y -.5}
  13 LINETO{x .25 y .5}
  14 LINETO{x -.25 y .5}
  15 CLOSEPOLY{}
  16 FILL{|h 0 b .1 sat .1}
  17 }
 
An alternative title might have been colourful brain/brain stem?
 
To get a regular Pythagoras tree substitute a SQUARE primitive (or a square path ie .5 for .25) for the oblong, and change -.25 to -.5 lines 6, and 45 for 30 line 7.



2 comments:

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