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, 16 August 2010

Another Context Free Sketch Using Ypsilon Scheme

Here's another example of translating cfdg context free rule to ypsilon context free. To get this one to run I needed to increase the heap size to 256 Mb.

   1 ;double_spiral.sps
   2 ;After Double Spiral
   3 ;By Sordina
   4 ;
   5 
   6 (import (rnrs)
   7         (psilab cfdg core)
   8         (psilab cfdg rule))
   9 
  10 
  11 (rule double
  12    (1 (spiral)
  13       (spiral 
  14       (x 2)
  15       )
  16    )
  17 )
  18 
  19 (rule spiral
  20    (1 (circle)
  21       (spiral       
  22       (scale 0.99999)
  23       (y 0.1)
  24       (rotate 0.1) 
  25       )
  26    )
  27 )
  28 
  29 (init-cfdg)
  30 
  31 (background (brightness 1)) 
  32 
  33 (bounds -125 15 -70 70)
  34 
  35 (start-shape double) 


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