We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hello,
playing around with lights and noticed lighting has no effect on stroke.
is there a way i can achieve it?
many thanks
void setup() {
size(400, 400, P3D);
smooth(8);
}
void draw() {
background(0);
fill(255);
stroke(255, 255, 255, 255);
pointLight(150, 102, 122, mouseX, 40, mouseY);
translate(width/2, height/2, 0);
sphere(100);
}
Answers
Yes, it is working. Try to set the fill to noFill() and set stroke(255,255,255,50);
Hmm.
But you have the transparency of the stroke set to 10.
How can this work with transparency set to 255, just like for the fill.
I don't want dull, low alpha colors in the stroke, but vibrant ones as they are at full opacity.