0

Canvas wirh JQuery?

Hello everybody, I want to make a litte game with an recangle but I don't know how. Can you help me please? My Code: $("#field" ).append('<canvas id="canvas"></canvas>'); How can I get the Context of the Canvas??

9th Dec 2017, 11:03 AM
ZAIMON
ZAIMON - avatar
1 Resposta
+ 1
https://code.sololearn.com/Weid5d124V88/?ref=app Here's an example of how to get a moving thing onto a canvas (no user input). jQuery won't help you much when using canvas, because jQuery mostly only helps with the HTML side of things. Luckily the Javascript canvas API is pretty good!
9th Dec 2017, 11:13 AM
Schindlabua
Schindlabua - avatar