# Make a specific PGraphics not smooth in P2D

**URL:** <https://discourse.processing.org/t/make-a-specific-pgraphics-not-smooth-in-p2d/41560>\
**Category:** Coding Questions\
**Created:** [April 1, 2023, 8:46pm UTC](https://discourse.processing.org/t/make-a-specific-pgraphics-not-smooth-in-p2d/41560 "2023-04-01T20:46:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [April 2, 2023, 8:44pm UTC](https://discourse.processing.org/t/make-a-specific-pgraphics-not-smooth-in-p2d/41560/7 "2023-04-02T20:44:36Z")

</div>

Hello,

Is this what you are trying to achieve?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/e/8e729eed8503054841aa47fb373d4f601e7c18f9.png)

I used my pixel viewer to view the pixels in the screen and my phone to zoom in on them (16x16 is small!) on my display.

Sunflowers:

- top original image 16x16
- middle original image pixelated to 2x2 blocks
- bottom original image from a P2D PGraphic pixelated to 2x2 blocks

Pixel viewer:

> [@Issue when rendering small rectangles](https://discourse.processing.org/t/issue-when-rendering-small-rectangles/38217/5):
>
> Hello, A very simple pixel viewer that I use to zoom in on sketch. Try different renderers, smooth() values, etc. I even tried odd and even. No pun intended! Some code for you to experiment with: // Pixel Viewer // v1.0.0 // GLV 2022-08-06 PImage img; boolean toggle; int oddeven, count, choice; void setup() { //size(650, 600); size(650, 600, P2D); //size(650, 600, P3D); background(255); //smooth(4); // Default is 2 noSmooth(); //strokeWeight(1); } …

Reference:

> **[Pixelation](https://en.wikipedia.org/wiki/Pixelation)**
>
> In computer graphics, pixelation (or pixellation in British English) is caused by displaying a bitmap or a section of a bitmap at such a large size that individual pixels, small single-colored square display elements that comprise the bitmap, are visible. Such an image is said to be pixelated (pixellated in the UK).
> Early graphical applications such as video games ran at very low resolutions with a small number of colors, resulting in easily visible pixels. The resulting sharp edges gave curved ...

_Shaders_ were not used in my exploration of this.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/make-a-specific-pgraphics-not-smooth-in-p2d/41560)._
