I have the following working code:
ctx = document.getElementById("canvas").getContext('2d');
Is there any way to re-write it to use $? Doing this fails:
ctx = $("#canvas").getContext('2d');
I have the following working code:
ctx = document.getElementById("canvas").getContext('2d');
Is there any way to re-write it to use $? Doing this fails:
ctx = $("#canvas").getContext('2d');