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

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.

Hi @Kevincroos,

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

This its an example

<!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.

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

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)

1 Like