# Line(x,y,z,x2,y2,z2) not working in the editor (logged in)

**URL:** <https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290>\
**Category:** Coding Questions\
**Created:** [November 23, 2023, 9:50am UTC](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290 "2023-11-23T09:50:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![somartist](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/somartist/32/19055_2.png) [@somartist](https://discourse.processing.org/u/somartist)\
**Post date:** [November 23, 2023, 9:50am UTC](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290/1 "2023-11-23T09:50:58Z")

</div>

Hello

Why does this line(0,0,0,100,100,100) give an error in the editor? It works in my local version.

Code is directly from the references:

> **[p5.js Web Editor](https://editor.p5js.org/somartist/sketches/PtfCnaQe5)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

EDIT: I just now see that it’s working once I’m logged out. It seems to be a problem with a11y of p5js. Once I’m logged in it also gives a warning about “createElement” being used in my code, which is not true.

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [November 24, 2023, 6:22am UTC](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290/2 "2023-11-24T06:22:34Z")

</div>

Hi @somartist,

Sorry! I can’t reproduce it. It works for me in each case (logged in/out) without any warnings…

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![somartist](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/somartist/32/19055_2.png) [@somartist](https://discourse.processing.org/u/somartist)\
**Post date:** [November 28, 2023, 4:18pm UTC](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290/3 "2023-11-28T16:18:27Z")

</div>

Oh, I see. As I mentioned the error is around a11y.

Turn on screenreader features in the settings and voila.

 ![PastedGraphic-3](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/9/2902ae610dd25159d2768e82d47620362157cb54.png)

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 28, 2023, 10:05pm UTC](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290/4 "2023-11-28T22:05:32Z")

</div>

It works for me as well, no error (when I am not logged in)

---

<div class="post-metadata">

**Author:** ![somartist](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/somartist/32/19055_2.png) [@somartist](https://discourse.processing.org/u/somartist)\
**Post date:** [December 3, 2023, 2:49pm UTC](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290/5 "2023-12-03T14:49:09Z")

</div>

So I’m the only one that it happens? Well I see the code it breaks and can reproduce it over different devices and browsers.

---

<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:** [December 3, 2023, 3:31pm UTC](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-logged-in/43290/6 "2023-12-03T15:31:28Z")

</div>

Hello @somartist,

Using Google Chrome in Windows 10 and [your accessibility selections](https://discourse.processing.org/t/line-x-y-z-x2-y2-z2-not-working-in-the-editor-when-im-logged-in/43290/3):

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/7/4/743d3307703c445b639e58b6afb46de46790c133.png)

Reference:

> **[Home - The A11Y Project](https://www.a11yproject.com/)**
>
> The A11Y Project is a community-driven effort to make digital accessibility easier.

`:)`
