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, 30 September 2010

3D Tic Tac Toe (StructureSynth)

   1 // Write EisenScript code here...
   2 game
   3 
   4 set background #fff
   5 
   6 rule game{
   7 {h 20} frame
   8 {s 4 h 220} sphere
   9 {x -5 z -5 y -5 ry 45 rz 45 rx 45} jack
  10 {x 5 z 5 y 5 ry 45 rz 45 rx 45} jack
  11 }
  12 
  13 
  14 rule frame{
  15 cross
  16 {ry 90} cross
  17 }
  18 
  19 rule cross{
  20 four
  21 {rz 90} four
  22 }
  23 
  24 rule four{
  25 {y -2.5 z -2.5}bar
  26 {y -2.5 z 2.5}bar
  27 {y 2.5 z -2.5}bar
  28 {y 2.5 z 2.5}bar
  29 }
  30 
  31 rule bar{
  32   {s 14 0.5 0.5} 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 }


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