IDMNYU / p5.js-func

Function Generators for p5.js
MIT License
126 stars 10 forks source link

(window, eval) is a reserved function #4

Open billythemusical opened 2 years ago

billythemusical commented 2 years ago

Getting some errors when using p5.func.js in p5 v1.4.1 in the web editor.

🌸 p5.js says: you have used a p5.js reserved function "window" make sure you change the function name to something else.

+ More info: https://p5js.org/reference/#/p5/window 

Tried changing "window" on line 325 to "window_", but got another error.

🌸 p5.js says: you have used a p5.js reserved function "eval" make sure you change the function name to something else.

+ More info: https://p5js.org/reference/#/p5/eval 

Changed "eval =" on 2701 to "eval =" and "eval(..." to "eval(..." throughout and got it to run. Suggestions on a PR?