I would like to be able to make Canvas elements from the constructor so that I could make a function like this.
https://hacknite.vercel.app/mishalI get an error at the line var canvas = new Canvas() saying that 'Canvas is undefined' does HTML5 not allow creating elements from the constructor? or are there parameters that I need to pass to the constructor. Any ideas would be great.
<canvas>
element, usevar canvas = document.createElement("canvas");
. *PS. This answer seems to solve your previous question. Use the Accept answer feature to mark the answer as the right one.