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

Thursday, 4 November 2010

Flat Back Sierpinski

   1 // Camera settings. Place these before first rule call.
   2 set translation [-0.338887 0.00223453 -20]
   3 set rotation [-0.172084 -0.67148 0.720696 -0.895824 0.411027 0.169056 -0.409747 -0.616527 -0.672259]
   4 set pivot [0 0 0]
   5 set scale 1
   6 
   7 set background white 
   8 
   9 flbck_sierpinski
  10 
  11 rule flbck_sierpinski md 4 > cube {
  12 { s 1/2 } flbck_sierpinski
  13 { x -1 y 1 z 1 s 1/2 } flbck_sierpinski
  14 { z 1 s 1/2 } flbck_sierpinski
  15 { y 1 z 1 s 1/2 }flbck_sierpinski
  16 { y 1 s 1/2 } flbck_sierpinski
  17 { x 1 y 1 s 1/2 } flbck_sierpinski
  18 { x 1 y 1 z 1 s 1/2 } flbck_sierpinski
  19 { x 1 z 1 s 1/2 } flbck_sierpinski
  20 { x 1 s 1/2 } flbck_sierpinski
  21 }
  22 
  23 rule cube {
  24  {s 4 4 4}box
  25 }


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