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

Wednesday, 29 September 2010

3D Noughts and Crosses (Structure Synth)

EisenScript:-

   1 // Write EisenScript code here...
   2 game
   3 
   4 rule game{
   5 {h 20} frame
   6 {s 4 h 220} sphere
   7 {z 5 y 5 ry 45 rz 45 rx 45} jack
   8 {x 5 z 5 y 5 ry 45 rz 45 rx 45} jack
   9 }
  10 
  11 
  12 rule frame{
  13 cross
  14 {ry 90} cross
  15 }
  16 
  17 rule cross{
  18 four
  19 {rz 90} four
  20 }
  21 
  22 rule four{
  23 {y -2.5 z -2.5}bar
  24 {y -2.5 z 2.5}bar
  25 {y 2.5 z -2.5}bar
  26 {y 2.5 z 2.5}bar
  27 }
  28 
  29 rule bar{
  30 box
  31 7 * {x 1}box
  32 7 * {x -1} box
  33 }
  34 
  35 rule jack{
  36 arm
  37 {ry 90}arm
  38 {rz 90}arm
  39 }
  40 
  41 rule arm{
  42 5 *{x 0.28284271} sphere
  43 5 *{x -0.28284271} sphere
  44 }

Sunflow rendered:-





















Povray Rendered:-

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