# Is it possible to "move" your coordinate by moving the mouse?

**URL:** https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574
**Category:** Coding Questions
**Created:** [February 20, 2019, 6:40pm UTC](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574 "2019-02-20T18:40:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![LaLiia](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@LaLiia](https://discourse.processing.org/u/LaLiia)
#### Post date: [February 20, 2019, 6:40pm UTC](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574/1 "2019-02-20T18:40:41Z")

</div>

Hello,  
is it possible to “move” a coordinate (vector point) through the movement of the mouse? So that the effect is a form, for example a circle, to bend? Similar to the “Liquify” filter in Photoshop.

I would be very grateful if someone could help me!

---

<div class="post-metadata">

### Author: ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)
#### Post date: [February 21, 2019, 5:39am UTC](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574/2 "2019-02-21T05:39:04Z")

</div>

Is it possible? Yes. You have access to every single pixel of any PImage you like. You can manipulate them however you want. Just write the code to do it.

If you can;t be bothered & just want a set of pre-made tools for manipulating images, stick with Photoshop.

---

<div class="post-metadata">

### Author: ![LaLiia](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@LaLiia](https://discourse.processing.org/u/LaLiia)
#### Post date: [February 21, 2019, 5:58pm UTC](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574/3 "2019-02-21T17:58:14Z")

</div>

Thank you for your answer. it’s not so much about manipulating a photo, but rather about imitating an effect in a vector graphic so that you can interactively deform that shape with the mouse.

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [February 21, 2019, 6:01pm UTC](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574/4 "2019-02-21T18:01:20Z")

</div>

I’m not sure, but it sounds like you want to use the PixelFlow library and in particular look at the resources and examples under Computational Fluid Dynamics (or possibly Flow Field). Scroll down to see the correct examples – the library contains many other kinds of physics / flow that are not relevant to your problem:

> **[diwi/PixelFlow](https://github.com/diwi/PixelFlow)**
>
> A Processing/Java library for high performance GPU-Computing (GLSL). Fluid Simulation + SoftBody Dynamics + Optical Flow + Rendering + Image Processing + Particle Systems + Physics +... - diwi/Pixe...

---

<div class="post-metadata">

### Author: ![LaLiia](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@LaLiia](https://discourse.processing.org/u/LaLiia)
#### Post date: [February 23, 2019, 8:45pm UTC](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574/5 "2019-02-23T20:45:10Z")

</div>

Oh, that’s a good tip! Thank you!!
