# Diagonal line - gap

**URL:** https://discourse.processing.org/t/diagonal-line-gap/22724
**Category:** Processing
**Created:** [July 19, 2020, 3:01pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724 "2020-07-19T15:01:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Niprro](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@Niprro](https://discourse.processing.org/u/Niprro)
#### Post date: [July 19, 2020, 3:01pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724/1 "2020-07-19T15:01:01Z")

</div>

Trying to make a diagonal line from 0,0 to 600,600 Please help me understand why is there a gap at the end of my line.  
Why is the line ending before the last bottom right point on the canvas ?

```auto
void setup ()
{
  size (600,600);
  background (255,255,0);
}
void draw ()
{
 line (0,0,600,600);
}

```

 ![DeepinScreenshot_20200719202821](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/39b45fe0a65e10fb7fb48a142c9ac923fdd8251a.png)

Much thanks.

---

<div class="post-metadata">

### Author: ![qewer3322](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qewer3322](https://discourse.processing.org/u/qewer3322)
#### Post date: [July 19, 2020, 3:04pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724/2 "2020-07-19T15:04:25Z")

</div>

It is perfect on my computer. Maybe try again with another size?

---

<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: [July 19, 2020, 3:12pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724/3 "2020-07-19T15:12:54Z")

</div>

What version of Processing and and [OS](https://en.wikipedia.org/wiki/Operating_system) are you using?

This is what I get with your code:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/68475739f1927dd101b4584c670b8f9b82a5be65.png)

`:)`

---

<div class="post-metadata">

### Author: ![Niprro](https://avatars.discourse-cdn.com/v4/letter/n/35a633/32.png) [@Niprro](https://discourse.processing.org/u/Niprro)
#### Post date: [July 19, 2020, 3:21pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724/4 "2020-07-19T15:21:31Z")

</div>

Thanks qewer3322 and glv

I am using 3.5.4 on Ubuntu DDE 20  
Now,

1. When i switch to Sketch \> present - I do not face this problem.
2. When I tried my code on 3.5.3 on a windows machine, I did not face this problem.

Whats going on ?

---

<div class="post-metadata">

### Author: ![qewer3322](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qewer3322](https://discourse.processing.org/u/qewer3322)
#### Post date: [July 19, 2020, 3:24pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724/5 "2020-07-19T15:24:05Z")

</div>

Opened the screenshot with paint and it looks like the window is missing 10 pixels from the bottom and I think that is added to the side (the thin grey part on the right). A bug maybe?
