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

Sunday, 6 September 2009

Boring Old Koch Snowflake

Simple rules are often best (hexaflake is easy anyway)

   1 startshape hexaflake
   2 background { b -1 }
   3 rule hexaflake {
   4 TRIANGLE{}
   5 TRIANGLE{r 180}
   6 6 * {r 60}{
   7 hexaflake { b 1 y .3849 s .3333 }
   8 }
   9 }

<= Pleasing result

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