2013-10-27 22:24:23 +00:00
|
|
|
void setup() {
|
2020-02-17 23:21:07 -08:00
|
|
|
size(500, 500, P3D);
|
2013-10-27 22:24:23 +00:00
|
|
|
}
|
|
|
|
|
void draw() {
|
2020-02-17 23:21:07 -08:00
|
|
|
background(192);
|
|
|
|
|
translate(width/2, height/2);
|
|
|
|
|
// optional color and lighting style
|
2013-10-27 22:24:23 +00:00
|
|
|
stroke(200);
|
2020-02-17 23:21:07 -08:00
|
|
|
fill(255);
|
2013-10-27 22:24:23 +00:00
|
|
|
lights();
|
2020-02-17 23:21:07 -08:00
|
|
|
// draw sphere
|
|
|
|
|
sphere(200);
|
2013-10-27 22:24:23 +00:00
|
|
|
}
|