Simple question about drawing
in
Programming Questions
•
2 years ago
Hi everyone!
I'm having a trouble with something that must be simple and I must be missing something
Thank you.
I'm having a trouble with something that must be simple and I must be missing something
I look out in the foruns, openprocessing and everywhere for an answer but couldn't found a simple one
for example, if I've this little drawing program that draws a simple blue line according to the mouse position:
- void setup(){
- size(400, 400);
- }
- void draw(){
- stroke(0,0,255);
- strokeWeight(20);
- line(mouseX, mouseY, pmouseX, pmouseY);
- }
the line draws with the alpha but a lot of ellipses inside the trace
How can I draw a continuous line with the same alpha and increase the alpha only if I intersect the line
without having those ellipses while continuos drawing?
Thank you.
1