RosettaCodeData/Task/Draw-a-sphere/Processing/draw-a-sphere-1.processing

14 lines
218 B
Plaintext

void setup() {
size(500, 500, P3D);
}
void draw() {
background(192);
translate(width/2, height/2);
// optional color and lighting style
stroke(200);
fill(255);
lights();
// draw sphere
sphere(200);
}