Simple Isometric graphics with processing

Nikolaus Gradwohl2009-05-20T05:08:00+00:00

I found a very simple way to generate isometric graphics in processing.


click here to see it as an applet (and get the source)

the trick is to rotate the image by 45 deg and scale it with scale(1, 0.5).

this way the graphic can be draw as always, only the z coordinate has to be substracted from the x and the y coordinate

void draw() {
  translate( width/2, height/2 );
  scale( 1, 0.5 );
  rotate( radians( 45 ) );
  translate( -width/2, -height/2 );

  line( x1 - z1, y1 - z1, x2 - z2, y2 - z2 );   

Tweet This! submit to reddit Digg! Tags: | 1 comments | no trackbacks

See also:

sketch experiment 7 - osc events
nested cubes in processing
processing phaseflower
Time Perception
de jong attractor



Leave a response

  1. mhuyck 2009-05-20T16:36:28+00:00

    Clever! Thanks for sharing...

Leave a comment