https://editor.p5js.org/lofeudo51/sketches/73z95MsMn
Script error. (: line 0)
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.