/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.3wcVXQ0HXSX/rev.2
*
* authors:
*
*
*
* Andor Salga
*
*
*
*
*
*
*
*
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
/*
FSOSS 2010
Andor Salga
Example of sphere and sphereDetail
*/
import processing.opengl.*;
void setup(){
size(400, 400, OPENGL);
}
void draw(){
background(#336699);
// center in the canvas
translate(width/2, height/2, 150);
rotateY( frameCount/250.0f );
sphereDetail((int)(mouseX/ (float)width * 50));
sphere(50);
}