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, 2 November 2010

Cube Variant Sunflow Rendered

   1 // Camera settings. Place these before first rule call.
   2 set translation [-0.275833 0.00223453 -20]
   3 set rotation [-0.828686 0.413368 0.377243 -0.0922356 -0.765772 0.636483 0.551983 0.492647 0.672715]
   4 set pivot [0 0 0]
   5 set scale 1.15
   6 
   7 set background white 
   8 
   9 scube
  10 
  11 rule scube md 3 > cube {
  12 { x 1 y 1 z 1 s 1/2 } scube
  13 { x -1 y 1 z 1 s 1/2 } scube
  14 { x 1 y -1 z 1 s 1/2 } scube
  15 { x -1 y -1 z 1 s 1/2 } scube
  16 { x 1 y 1 z -1 s 1/2 } scube
  17 { x -1 y 1 z -1 s 1/2 } scube
  18 { x 1 y -1 z -1 s 1/2 } scube
  19 { x -1 y -1 z -1 s 1/2 } scube
  20 }
  21 
  22 rule cube {
  23 {h 5} sphere
  24  6 * {h 5 x 0.3}sphere
  25  6 * {h 5 x -0.3}sphere
  26 }
  27 
  28 rule cube {
  29  {s 4 h 220}box
  30 }
  31 
  32 rule cube {
  33   {s 4 h 20}sphere
  34 }


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