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

Wednesday, 14 October 2009

Two Glide Symmetry Examples

A Very Simple Example:-
   1 startshape glide
   2 
   3 rule glide{
   4 10*{x .66667}slide{}
   5 }
   6 
   7 
   8 rule slide{
   9 8*{x .16667 y .5 b .09}
  10 glider{h 60 sat 0.8 b -.005}
  11 }
  12 
  13 path glider{
  14 MOVETO{x 0 y 0}
  15 LINETO{x -.3333 y 0}
  16 LINETO{x -.16667 y .5}
  17 LINETO{x .16667 y .5}
  18 LINETO{x .3333 y 0}
  19 LINETO{x .16667 y -.5}
  20 CLOSEPOLY{}
  21 STROKE{width 0.01}
  22 FILL{}
  23 } 
 












A more Complicated example:-


   1 startshape glide
   2 rule glide{
   3 10*{x .66667}slide{}
   4 }
   5 
   6 rule slide{
   7 8*{x .5 y .5 b .09 flip 90}
   8 glider{h 60 sat 0.8 b -.005}
   9 }
  10 
  11 path glider{
  12 MOVETO{x 0 y 0}
  13 LINETO{x -.3333 y 0}
  14 LINETO{x -.16667 y .5}
  15 LINETO{x .16667 y .5}
  16 LINETO{x .3333 y 0}
  17 LINETO{x .16667 y -.5}
  18 CLOSEPOLY{}
  19 STROKE{width 0.01}
  20 FILL{}
  21 }

 

1 comment:

  1. I like the gradient on this one, it's very effective

    ReplyDelete

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