1
edit
Changes
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…'
<source lang="JavaScript">
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);
}
</source>
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);
}
</source>