# P5.js code do not work on mobile code editor (Treb Edit)

**URL:** <https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136>\
**Category:** p5.js\
**Created:** [May 17, 2021, 3:51pm UTC](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136 "2021-05-17T15:51:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevincroos](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevincroos/32/13292_2.png) [@Kevincroos](https://discourse.processing.org/u/Kevincroos)\
**Post date:** [May 17, 2021, 3:51pm UTC](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136/1 "2021-05-17T15:51:27Z")

</div>

```auto
I really need help to resolve it =/

```

I really need help to resolve it =/  
I started an project using P5.js with an mobile code editor( **Treb Edit** ), in the start my code runned good but after an two days my editor do not worked with these project, i changed to others editors but my code do not worked too, i maked three diferents projects(_with P5min and skecth.js_) but my code do not runned . I have experience with processing.js, i had maked projects in computer but i never used the P5 on the mobile, i need help to know if these problem its because the code editors or its an bug in my html pages.

- I am avaliable in the private chat.
- I only can resolve it in the mobile actually.

---

<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:** [May 17, 2021, 4:08pm UTC](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136/2 "2021-05-17T16:08:04Z")

</div>

Hi @Kevincroos,

Do you have a link to your code or it’s too long? Do you have any errors in the console?

---

<div class="post-metadata">

**Author:** ![Kevincroos](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevincroos/32/13292_2.png) [@Kevincroos](https://discourse.processing.org/u/Kevincroos)\
**Post date:** [May 17, 2021, 4:33pm UTC](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136/3 "2021-05-17T16:33:13Z")

</div>

This its an example

```auto
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>teste</title>
</head>

<body>

<script> src="p5.js"</script>
<script>

function setup () {
  
  background(56)
  createCanvas(400, 400)
  
}

function draw () {
  
  fill(0)
  ellipse( 50, 50, 50, 50)
  
}</script>

</body>

</html>

```

Hello, thanks by reply me. Dont have errors in the console.

---

<div class="post-metadata">

**Author:** ![Kevincroos](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevincroos/32/13292_2.png) [@Kevincroos](https://discourse.processing.org/u/Kevincroos)\
**Post date:** [May 17, 2021, 4:38pm UTC](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136/4 "2021-05-17T16:38:46Z")

</div>

These program works on the P5.js Editor, but dont run on my editors.

---

<div class="post-metadata">

**Author:** ![Kevincroos](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevincroos/32/13292_2.png) [@Kevincroos](https://discourse.processing.org/u/Kevincroos)\
**Post date:** [May 27, 2021, 5:02pm UTC](https://discourse.processing.org/t/p5-js-code-do-not-work-on-mobile-code-editor-treb-edit/30136/5 "2021-05-27T17:02:14Z")

</div>

# Hello

I actually has resolved this problem, my mobile editors do not works without the P5.PLAY together with the P5 documentation, i do not know why my code runned in the start, but, its resolved(Thanks by try to help me =D)
