# How can I make a rectangular collision of an image?

**URL:** <https://discourse.processing.org/t/how-can-i-make-a-rectangular-collision-of-an-image/28538>\
**Category:** Coding Questions\
**Created:** [March 14, 2021, 7:36pm UTC](https://discourse.processing.org/t/how-can-i-make-a-rectangular-collision-of-an-image/28538 "2021-03-14T19:36:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [March 15, 2021, 9:11am UTC](https://discourse.processing.org/t/how-can-i-make-a-rectangular-collision-of-an-image/28538/2 "2021-03-15T09:11:08Z")

</div>

Hi,

Welcome to the forum! 😉

Remember to put your code between backticks like this ``` ``` or use the `</>` button when editing a message. (you can also edit your previous message)

You might want to look at this previous thread for rectangle collision :

> [@Collision of two rectangles](https://discourse.processing.org/t/collision-of-two-rectangles/22010/6):
>
> in p5, but easily portable … [[Coding Challenge #31: Flappy Bird] ](https://www.youtube.com/watch?v=cXgA1d_E-jY)

---

_[View the full topic](https://discourse.processing.org/t/how-can-i-make-a-rectangular-collision-of-an-image/28538)._
