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, 1 May 2012

Stochastic Menger II (structure-synth)

More efficient eisenscript for a stochastic menger, exploring using a "unit menger".
set maxdepth 200000
R1 


rule R1 w 10 maxdepth 2 > R2 {
  { s 1/3 x -1 y -1  } R1 
  { s 1/3 x -1 y -1  z -1 } R1 
  { s 1/3 x -1 y -1  z +1 } R1 
  { s 1/3 x 1 y -1  } R1 
  { s 1/3 x 1 y -1  z -1 } R1 
  { s 1/3 x 1 y -1  z +1 } R1 
  { s 1/3  y -1  z -1 } R1  
  { s 1/3  y -1  z +1 } R1 
  { s 1/3 x -1 y 1  } R1 
  { s 1/3 x -1 y 1  z -1 } R1
  { s 1/3 x -1 y 1  z +1 } R1 
  { s 1/3 x 1 y 1  } R1 
  { s 1/3 x 1 y 1  z -1 } R1
  { s 1/3 x 1 y 1  z +1 } R1
  { s 1/3  y 1  z -1 } R1  
  { s 1/3  y 1  z +1 } R1 
  { s 1/3 x -1   z -1 } R1 
  { s 1/3 x -1   z +1 } R1 
  { s 1/3 x 1    z -1 } R1 
  { s 1/3 x 1    z +1 } R1
}

rule R1  {R2}

rule R2 w 10 maxdepth 1 > c2{
  { s 1/3 x -1 y -1  } R2 
  { s 1/3 x -1 y -1  z -1 } R2 
  { s 1/3 x -1 y -1  z +1 } R2 
  { s 1/3 x 1 y -1  } R2 
  { s 1/3 x 1 y -1  z -1 } R2 
  { s 1/3 x 1 y -1  z +1 } R2 
  { s 1/3  y -1  z -1 } R2  
  { s 1/3  y -1  z +1 } R2 
  { s 1/3 x -1 y 1  } R2 
  { s 1/3 x -1 y 1  z -1 } R2 
  { s 1/3 x -1 y 1  z +1 } R2 
  { s 1/3 x 1 y 1  } R2 
  { s 1/3 x 1 y 1  z -1 } R2 
  { s 1/3 x 1 y 1  z +1 } R2 
  { s 1/3  y 1  z -1 } R2  
  { s 1/3  y 1  z +1 } R2 
  { s 1/3 x -1   z -1 } R2 
  { s 1/3 x -1   z +1 } R2 
  { s 1/3 x 1    z -1 } R2 
  { s 1/3 x 1    z +1 } R2 
}

rule R2{
{color orange} sphere
}

rule c2  w 3{
{color blue} box
}

rule c2 {
 {color orange} sphere
}

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