We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hi there, I have a problem with p5.js canvas background color.I created a clock and I want to change black canvas color to transparent. Looks nothing special, but after I changing it, arrows leaving the mark after every second, minute after every minute ... (have a look at image here https://ibb.co/dNqYT6 )
Answers
https://p5js.org/reference/#/p5/clear
https://ignasgri.github.io/ClockJS/
how would you fix it? function setup(){ createCanvas(180, 180); angleMode(DEGREES); } function draw(){ background(0, 128, 0, 0); translate(90,90); rotate(-90);
Have you tried calling clear()? I didn't see it in your code inside draw(). :-@
works! thanks a lot! @GoToLoop