Pixelated lines

Hi there! As you can see here, this lines are so pixelated, can you tell me why and how can I avoid it? Thank you so much!

size(1000,1000);
strokeWeight(20);
background (255);

for(int x=0;x<1000;x=x+60){
  stroke(0,0,0);
  line(x+20,0,x,1000);
}

for(int x=40;x<1000;x=x+60){
  stroke(0,255,255);
  line(x,0,x-20,1000);
}

for(int x=20;x<1000;x=x+60){
  stroke(255,0,0);
  line(x,0,x,1000);
}

Hi @humano,

This is the output on my computer:

Do you consider this pixelated?

Hello,

It is important to share the environment you are working in.

From other posts I gleaned that some are using:

  • ChromeBook
  • OpenProcessing

These may be factors in what you are seeing.

Are you able to post a screengrab?

I see the same as @josephh and it does not look pixelated to me.

I am using W10 Pro, Processing 4.0b1 and a nice 1920*1200 display with an NVIDIA graphics card (a bit dated and I may get a new one! now that I think of it).

:)

Thank you for your answer, I am using android app, but if you tell me than in the computer will not be pixelated, it is ok!

1 Like