# How to make my rects bigger based on proximity (bigger the closer to my mouse) pjs

**URL:** <https://discourse.processing.org/t/how-to-make-my-rects-bigger-based-on-proximity-bigger-the-closer-to-my-mouse-pjs/31637>\
**Category:** Coding Questions\
**Created:** [August 9, 2021, 6:20am UTC](https://discourse.processing.org/t/how-to-make-my-rects-bigger-based-on-proximity-bigger-the-closer-to-my-mouse-pjs/31637 "2021-08-09T06:20:22Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [August 9, 2021, 10:14am UTC](https://discourse.processing.org/t/how-to-make-my-rects-bigger-based-on-proximity-bigger-the-closer-to-my-mouse-pjs/31637/15 "2021-08-09T10:14:33Z")

</div>

Also see this for OpenProcessing users:

> [@Loops using arrays](https://discourse.processing.org/t/loops-using-arrays/30253/9):
>
> Hello, In place of println() you can use console.log(): I converted C and F to strings so I could put them on one line. slight_smile

And another tidbit about using float and int:

[https://github.com/processing/processing/wiki/Troubleshooting#why-does-2–5–0-instead-of-04](https://github.com/processing/processing/wiki/Troubleshooting#why-does-2--5--0-instead-of-04)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/how-to-make-my-rects-bigger-based-on-proximity-bigger-the-closer-to-my-mouse-pjs/31637)._
