yes! I'm having fun binge creating p5 content haha. I find the fancy websites through curation sites like awwwards and god.ly. It's nice when they have an option to filter by JS libraries used.
Hi! I tried to make it with a transparent background, but the dots are drawn a line after them :) Is it possible to make this animation with a transparent bg?
Hey Soma - unfortunately we have to draw the background each time to clear the circles drawn in the previous frame. This allows us to use it as a background but not OVER other content as you've discovered. You might try adapting the code to utilize DOM elements and a tweening library like GSAP for that purpose. You could store the dot positions in an array and update the top/left or transform translateX/Y properties. I'm not sure how performant it would be! Probably fine with a few dots.
@@webbae and @fluidblocks, I was able to make a transparent background by just clearing the background after each frame. //clear the background after each frame function draw() { clear(); // Clear the background (translucent) each frame...
Cool effect, thank you. Will u keep up with this series and show us more complex effects? Btw. how do u find those fancy websites? ;)
yes! I'm having fun binge creating p5 content haha. I find the fancy websites through curation sites like awwwards and god.ly. It's nice when they have an option to filter by JS libraries used.
also twitter. just keep my eyes out for cool stuff and bookmark it.
My new favorite verb is ‘LERPIN’
Use case: “these loitering line-cutting fools need to LERP themselves and wait like the rest of us”
😤 "The rules don't apply to me, I will LERP myself to the front of this line using a higher interpolation amount."
@@webbae these sideshow maniacs need to lerp their cars back into the lane
Hi! how would you add color to these circles?
Hi! You can use the fill() function.
chat.openai.com/share/025d0e7c-c9ed-4439-ac37-624cc3bd1c99
Hi!
I tried to make it with a transparent background, but the dots are drawn a line after them :)
Is it possible to make this animation with a transparent bg?
Hey Soma - unfortunately we have to draw the background each time to clear the circles drawn in the previous frame. This allows us to use it as a background but not OVER other content as you've discovered. You might try adapting the code to utilize DOM elements and a tweening library like GSAP for that purpose. You could store the dot positions in an array and update the top/left or transform translateX/Y properties. I'm not sure how performant it would be! Probably fine with a few dots.
@@webbae and @fluidblocks, I was able to make a transparent background by just clearing the background after each frame.
//clear the background after each frame
function draw() {
clear(); // Clear the background (translucent) each frame...