0

Why wont my program run correctly in Code Playground. What am i missing?

i decided that i should learn a new language. so im trying out javaScript. i made a program and it runs fine on my local host, however when i put it in here, it does not display anything. i uploaded my index.html and my "main.js" to the respective spots on Code Playground. am i not supposed to have setup() or draw()? how can i include more scripts on Code Playground? what is the js file name to reference to in CP, or does it just know automatically? what do i Need for a file to render correctly in the CP? --any feedback is helpful feedback :D

21st Feb 2017, 5:44 AM
Michael Szczepanski
Michael Szczepanski - avatar
4 odpowiedzi
+ 5
that because you have to make a html canvas which has the same size, on the computer the editor does that on its own
21st Feb 2017, 6:14 AM
Kamil
Kamil - avatar
+ 4
you don't have a canvas! p5.js needs it
21st Feb 2017, 5:59 AM
Kamil
Kamil - avatar
+ 1
I wrote "createCanvas (400,400)".... like I said it works on my comouter but not in the Code Playground.... :/
21st Feb 2017, 6:01 AM
Michael Szczepanski
Michael Szczepanski - avatar
+ 1
I wrote "createCanvas (400,400)".... like I said it works on my comouter but not in the Code Playground.... :/
21st Feb 2017, 6:02 AM
Michael Szczepanski
Michael Szczepanski - avatar