void draw()
{
background(0,0,0);
translate(400,400,-mouseY);
fill(0,255,0);
directionalLight(255,0,0,10,0,0);
noStroke();
sphere(100.0);
}
void draw()
{
background(0,0,0);
translate(400,400,-mouseY);
fill(0,255,0);
directionalLight(255,0,0,10,0,0);
noStroke();
sphere(100.0);
}
The color red for the sphere seems to work better:
void setup() {
size(800, 800, P3D);
}
void draw() {
background(0, 0, 0);
translate(400, 400, -mouseY);
directionalLight(255, 0, 0, 10, 0, 0);
fill(255, 0, 0);
noStroke();
sphere(100.0);
}
Thanks!very helpful!
Thanks!very helpful!
Thanks!very helpful!