# Blurred Image instead of pixels visible

**URL:** <https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071>\
**Category:** Coding Questions\
**Created:** [September 19, 2019, 11:29am UTC](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071 "2019-09-19T11:29:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikolaskoa](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mikolaskoa/32/6478_2.png) [@mikolaskoa](https://discourse.processing.org/u/mikolaskoa)\
**Post date:** [September 19, 2019, 11:29am UTC](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071/1 "2019-09-19T11:29:16Z")

</div>

Hello,

how can I make the pixels of an image stay sharp on screen?  
When I create them directly with the set-Method, they stay sharp.  
When creating an image - they get blurred (which is usefull if there are gradients, but I want the pixels to stay visible as pixels). I did not find a constructor to change this effect.

Best regards,

Adriana

---

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [September 19, 2019, 1:04pm UTC](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071/2 "2019-09-19T13:04:27Z")

</div>

Try [noSmooth()](https://processing.org/reference/noSmooth_.html).

What do you mean by “creating an image”? Are you using _rect()_, _ellipse()_, etc.?

---

<div class="post-metadata">

**Author:** ![mikolaskoa](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mikolaskoa/32/6478_2.png) [@mikolaskoa](https://discourse.processing.org/u/mikolaskoa)\
**Post date:** [September 20, 2019, 3:50am UTC](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071/3 "2019-09-20T03:50:29Z")

</div>

i mean the createImage method

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [September 20, 2019, 4:45am UTC](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071/4 "2019-09-20T04:45:05Z")

</div>

why you not link to your project ( or better MVCE ) at  
[https://editor.p5js.org](https://editor.p5js.org)  
so we could see in a second what it looks like ( and what code produces it )

* * *

so i would guess:  
that you loose some quality by showing a p5.image  
when you use the 5 parameter way ( to zoom / fit it )  
while when i use the 3 parameter way it is ‘sharp’

* * *

i play [here](https://editor.p5js.org/kll/sketches/cVHHlz2N8)

---

<div class="post-metadata">

**Author:** ![mikolaskoa](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mikolaskoa/32/6478_2.png) [@mikolaskoa](https://discourse.processing.org/u/mikolaskoa)\
**Post date:** [September 21, 2019, 4:59pm UTC](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071/5 "2019-09-21T16:59:32Z")

</div>

But thank you very much! noSmooth worked perfect!
