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

Tuesday, 5 February 2013

Parameters in context free art designs

   1 startshape GoldenRatio
   2 
   3 CF::Background = [b -0.2]
   4 
   5 IPHI = 2/(sqrt(5) + 1) 
   6 
   7 shape GoldenRatio{
   8     isocelesAndArc(0.5, IPHI)[alpha -0.9]
   9 } 
  10  
  11 shape isocelesAndArc(number nm, phi) {
  12    isoceles(nm) [alpha nm]
  13    Arc(nm)[alpha nm]
  14    isocelesAndArc(=) [alpha 0.1 s phi x (nm + nm*phi) y (nm - nm*phi) r -90 ]
  15 }
  16  
  17 path Arc(number nm) {
  18     MOVETO(nm, nm)
  19     ARCTO( -nm,  -nm, 1, 1, 90)
  20     CLOSEPOLY()
  21 }
  22 
  23 path isoceles(number nm) {
  24     MOVETO( nm ,nm)
  25     LINETO( -nm , -nm)
  26     LINETO( nm , -nm)
  27     CLOSEPOLY()
  28 }
Click on image to view full size (else you won't see detail)

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