Hi. I am linking here a sample project using P5js to get nokia resolution and colors. Remember not to reuse THIS code, just the ideas (algorithm, P5 functions, and so on).
https://openprocessing.org/sketch/1460627
(Sorry, my keyboard died while I was typing the topic. All lines following this one are edits to original topic).
I think I will use actual Java mode processing instead of P5.js, since P5js smooths pixels by default and also has rome buggy implementations that don't respect the pixels[] matrix.