# Testing embedding

**URL:** <https://discourse.processing.org/t/testing-embedding/20573>\
**Category:** Processing\
**Created:** [May 7, 2020, 1:28am UTC](https://discourse.processing.org/t/testing-embedding/20573 "2020-05-07T01:28:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [May 7, 2020, 1:28am UTC](https://discourse.processing.org/t/testing-embedding/20573/1 "2020-05-07T01:28:43Z")

</div>

@jeremydouglass I was verifying if with embedding I could get rid of the zoom problem (When the Device Pixel Aspect Ratio is not exactly 1) But for some reason, the sketch doesn’t work at all here.

https://www.openprocessing.org/sketch/878781/embed/

---

<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:** [May 7, 2020, 2:26am UTC](https://discourse.processing.org/t/testing-embedding/20573/2 "2020-05-07T02:26:44Z")

</div>

Something odd about that sketch. I just had it crash two browsers.

- [https://www.openprocessing.org/sketch/878781](https://www.openprocessing.org/sketch/878781)

At a minimum change mousePressed to mouseReleased so that you aren’t flooding many times per click. Something is going on with the flood too, I suspect. Or it is just my browser.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [May 8, 2020, 11:09am UTC](https://discourse.processing.org/t/testing-embedding/20573/3 "2020-05-08T11:09:28Z")

</div>

@jeremydouglass  
Thanks for testing. I really found an error in the code, when targeting the fill color. Also, the tolerance limit is reduced. I’ve made the correction on the Rosetta page. and tested it extensively. In OpenProcessing the problem remains. I will try to solve this whenever I feel the patience.  
I do however not understand your advice to use mouseReleased(). In my understanding mousePressed just runs one click.
