Make a specific PGraphics not smooth in P2D

Hello,

Is this what you are trying to achieve?

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:

Reference:

Shaders were not used in my exploration of this.

:)