Mouse Interaction Creates Pattern?

Please excuse the n00b question.

Is there sample code or a library for a mouse interaction similar to Kawandeep Virdee’s Confetti Vortex?
https://whichlight.github.io/interactive-trading-card/

I have looked through the topics and do not find anything similar.

Thank you!

Next questions:

  • Mac input
  • Porting to Git and Github from Openprocessing
  • Input from an external sources
1 Like

Hello and welcome to the forum! Great to have you here.

reminded me off this Pulses / Examples / Processing.org

You can make a growing shape instead of the flower.

here is the shape:


size(600, 600); 

float x=width/2; // =mouseX; 
float y=height/2; // =mouseY; 

beginShape();
vertex(x, y-80); // TOP
vertex(x+40, y); // Right middle 
vertex(x, y+80); // Bottom 
vertex(x-40, y); // LEFT 
endShape(CLOSE);
1 Like

@Chrisir Thank you!

Very cool, now I know what it is called “Pulses.”

Happy New Year.

1 Like