R
R
RasulCrosePHP2019-02-15 15:51:27
JavaScript
RasulCrosePHP, 2019-02-15 15:51:27

How can I make something (grid) draw on the canvas?

I have a canvas (canvas), I also write setInterval in js (and every second I clear the canvas and draw back, so that no traces of objects remain). But because of this, I can't fill the canvas with squares (grid), as it clears up, help please?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2019-02-15
@RasulCrosePHP

It's obvious: you need to redraw the grid every frame. Well, or (it will be faster) draw the grid on another canvas, which is put under the first one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question