# Mouse Interaction Creates Pattern?

**URL:** https://discourse.processing.org/t/mouse-interaction-creates-pattern/40399
**Category:** Libraries
**Created:** [January 1, 2023, 6:52pm UTC](https://discourse.processing.org/t/mouse-interaction-creates-pattern/40399 "2023-01-01T18:52:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![museguy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/museguy/32/17746_2.png) [@museguy](https://discourse.processing.org/u/museguy)
#### Post date: [January 1, 2023, 6:52pm UTC](https://discourse.processing.org/t/mouse-interaction-creates-pattern/40399/1 "2023-01-01T18:52:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [January 1, 2023, 7:24pm UTC](https://discourse.processing.org/t/mouse-interaction-creates-pattern/40399/2 "2023-01-01T19:24:21Z")

</div>

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

reminded me off this [Pulses / Examples / Processing.org](https://processing.org/examples/pulses.html)

You can make a growing shape instead of the flower.

here is the shape:

```auto

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);

```

---

<div class="post-metadata">

### Author: ![museguy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/museguy/32/17746_2.png) [@museguy](https://discourse.processing.org/u/museguy)
#### Post date: [January 1, 2023, 8:07pm UTC](https://discourse.processing.org/t/mouse-interaction-creates-pattern/40399/3 "2023-01-01T20:07:53Z")

</div>

@Chrisir Thank you!

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

Happy New Year.
