daphne code draaidoos

//draaidoos

float spin = 0.01;

void setup()
{
size(640, 360, P3D);
noStroke();
}

void draw()
{
background(mouseY , mouseX , mouseY / 2 );
lights();

spin += 0.01;

pushMatrix();
translate(width/2, height/2, 0);
rotateX(PI/9);
rotateY(PI/5 + spin);
box(mouseX);
popMatrix();
}

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License