p5.accessibility.js makes the p5 canvas more accessible to people who are blind and visually impaired. It can be used with any p5.js sketch and it is used in the p5.js web editor.
GNU Lesser General Public License v2.1
74
stars
27
forks
source link
p5.js' web editor gives the "createElement()" error when the default template is run and the sound option is checked in the settings #155
The error in the console: p5 had problems creating the global function "createElement", possibly because your code is already using that name as a variable. You may want to rename your variable to something else. As mentioned in this issue, the cause is most likely that on line 724 of p5.accessibility.js, a global createElement function is created. This is conflicting with the global function that p5.js created.
Web browser and version: Chrome 80.0.3987.149
Operating System: Windows 10
Steps to reproduce this:
Go to the p5.js web editor. Check the box in Settings -> Accessibility -> Accessible text-based canvas -> Sound . Run the sketch without editing the default code.
Nature of issue?
Details about the bug:
The error in the console:
p5 had problems creating the global function "createElement", possibly because your code is already using that name as a variable. You may want to rename your variable to something else.
As mentioned in this issue, the cause is most likely that on line 724 of p5.accessibility.js, a globalcreateElement
function is created. This is conflicting with the global function that p5.js created.Go to the p5.js web editor. Check the box in
Settings -> Accessibility -> Accessible text-based canvas -> Sound
. Run the sketch without editing the default code.