# Pixelated lines

**URL:** <https://discourse.processing.org/t/pixelated-lines/32186>\
**Category:** Coding Questions\
**Created:** [September 10, 2021, 8:45pm UTC](https://discourse.processing.org/t/pixelated-lines/32186 "2021-09-10T20:45:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![humano](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@humano](https://discourse.processing.org/u/humano)\
**Post date:** [September 10, 2021, 8:45pm UTC](https://discourse.processing.org/t/pixelated-lines/32186/1 "2021-09-10T20:45:35Z")

</div>

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!

```auto
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);
}

```

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [September 10, 2021, 10:39pm UTC](https://discourse.processing.org/t/pixelated-lines/32186/2 "2021-09-10T22:39:40Z")

</div>

Hi @humano,

This is the output on my computer:

 ![lines](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b7eac3d838b8c69e824cd8778a681a51890e2bf8.png)

Do you consider this pixelated?

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [September 11, 2021, 9:53am UTC](https://discourse.processing.org/t/pixelated-lines/32186/3 "2021-09-11T09:53:42Z")

</div>

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](https://www.merriam-webster.com/dictionary/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).

`:)`

---

<div class="post-metadata">

**Author:** ![humano](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@humano](https://discourse.processing.org/u/humano)\
**Post date:** [September 11, 2021, 3:03pm UTC](https://discourse.processing.org/t/pixelated-lines/32186/4 "2021-09-11T15:03:37Z")

</div>

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!

 ![Screenshot_2021-09-11-11-00-55-150_com.calsignlabs.apde.sketchpreview](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/7bc31e8a8f81f70d25e9c5c9c900a953ee5d96d0.jpeg)
