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

Open Tiling of Concave Pentagons

   1 startshape start
   2 background{h 220 sat .8 b .8}
   3 rule start{
   4  5*{x 3.3}{
   5  4*{y 3.5}element{}
   6 }
   7 }
   8 
   9 rule element{
  10  5*{r 72 y 1}pentagon{h 360 sat .8 b .8}
  11 } 
  12 
  13 path pentagon{
  14 MOVETO{x 0 y 0}
  15 LINETO{x (-0.25*sqrt(10 + (2*sqrt(5)))) y (0.25*(sqrt(5) - 1))}
  16 LINETO{x (-.25*sqrt(10 - (2*sqrt(5)))) y (-0.25*(sqrt(5) + 1))}
  17 LINETO{x (0.25*sqrt(10 - (2*sqrt(5)))) y (-0.25*(sqrt(5) + 1))}
  18 LINETO{x (0.25 * sqrt(10 + (2  * sqrt(5)))) y (0.25 * (sqrt(5) - 1))}
  19 CLOSEPOLY{}
  20 }
 

 

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