I did a screen print and zoomed in. They look perfectly squared.
To scale them I used a PImage and now I see them blurred.
I don’t know what your goal is but maybe its better to use rect().
Edit: I forgot noSmooth(); When used they are not blurred.
You may have been accidentally reading documentation for p5.js, a JavaScript mode / library / dialect of Processing.
The first four values (indices 0-3) in the array will be the R, G, B, A values of the pixel at (0, 0). reference | p5.js
However, you are using Java mode Processing, which stores its color data in a different way – the pixels array has one color integer per pixel, and that color stores all channels together in a custom bit format:
From a technical standpoint, colors are 32 bits of information ordered as AAAAAAAARRRRRRRRGGGGGGGGBBBBBBBBcolor / Reference / Processing.org
Oh yeah, I tried to follow “The Coding Train” videos on youtube, but now I think it’s a different story.
OK so it’s the stuff I learned about which is to give the pixel 32-bit color resolution.
Actually I’m not interested in colors now. I’m working with monochrome bitmaps to micrcontroller projects with LCD. The model I’m using now doesn’t need color processing.