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

Saturday, 10 October 2009

Missing Hexagon

I've been playing with a non convex hexagon with a view to some tessellation experiments when I  came across this:-
   1 startshape start
   2 background{b -1}
   3 rule start{
   4 6*{r 60}
   5 chevtile{y (sqrt(3)/2) x .5 r 60}
   6 }
   7 
   8 rule chevtile{
   9 chev{}
  10 chevtile{s .8}
  11 }
  12 rule chev{
  13 chevron{h 60}
  14 }
  15 rule chev{
  16 chevron{h 220}
  17 }
  18 rule chev{
  19 chevron{h 360}
  20 }
  21 
  22 path chevron{
  23 MOVETO{x .25 y (sqrt(3)/4)}
  24 LINETO{x .5 y 0}
  25 LINETO{x .25 y (-sqrt(3)/4)}
  26 LINETO{x -.25 y (-sqrt(3)/4)}
  27 LINETO{x 0  y 0}
  28 LINETO{x -.25 y (sqrt(3)/4)}
  29 CLOSEPOLY{}
  30 FILL{sat 1 b 1}
  31 }

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