How to draw pixel at specific location on the buffer?

I don’t understand exactly why it has to be scaled, but you could draw the pixels as a rectangle and use a factor for your x y values. It has the same effect.

void setup() {
  size(1280, 640);
  background(255);
  fill(0);
  rect(100, 0, 10, 10);
}
1 Like