Difference between revisions of "FSOSS 2010/processing.js/box1"
(Created page with '<source lang="JavaScript"> import processing.opengl.*; void setup() { size(400, 400, OPENGL); } void draw() { background(#336699); // center in the canvas translate(w…') |
|||
Line 1: | Line 1: | ||
<source lang="JavaScript"> | <source lang="JavaScript"> | ||
+ | /* | ||
+ | FSOSS 2010 | ||
+ | Andor Salga | ||
+ | Example of box | ||
+ | */ | ||
import processing.opengl.*; | import processing.opengl.*; | ||
Line 21: | Line 26: | ||
} | } | ||
</source> | </source> | ||
+ | [http://studio.sketchpad.cc/nn3NB9Z3LD Run me] |
Latest revision as of 13:04, 26 October 2010
/*
FSOSS 2010
Andor Salga
Example of box
*/
import processing.opengl.*;
void setup()
{
size(400, 400, OPENGL);
}
void draw()
{
background(#336699);
// center in the canvas
translate(width/2, height/2, 150);
rotateY(radians(45));
rotateX( frameCount/250.0f );
box(50);
}