3D sphere issue
in
Programming Questions
•
1 year ago
I've run into a strange issue with drawing a 3d sphere where it doesn't seem to close properly as seen below:
I used the following code to generate said image:
- import processing.opengl.*;
-
- void setup() {
- size(600,600,OPENGL);
- rotateY(radians(30));
- }
-
- void draw() {
- background(180,219,180);
- lights();
- camera();
- translate(width/2,height/2,0.0);
- scale(width/2,height/2,1.0);
- fill(50,106,102);
- sphere(0.5);
- }
1