Skip to main content

All Questions

2 votes
1 answer
1k views

HTML/Javascript: zoom and interact on a canvas element

I am a bioinformatician who recently discovered Javascript and I have a question about the canvas element. Without going into the biological details, according to a set of genes entered by the user, ...
Vincent Darbot's user avatar
0 votes
1 answer
126 views

Image isn't rotating within canvas

I've searched through stackoverflow and found some code that would help with rotating an image, but it's not working. I don't see any errors, and it's getting the radians and degrees, so things should ...
J C's user avatar
  • 1
0 votes
1 answer
103 views

I can't draw my background. - HTML Canvas Game

So, in my code, under the draw function, I have bg.draw(); commented out. function draw() { clearAllCtx(); player.draw(); enemy.draw(); //bg.draw(); } When I ...
Benji Lee Hansen's user avatar
0 votes
2 answers
5k views

Canvas, javascript interaction?

As a part of a course in school, we're learning to work with the Canvas element of HTML5, this also means we're learning how to work with Javascript. The assignment is to create something graphic and ...
tomasantonj's user avatar