A
A
AndRussia2020-06-18 10:54:35
JavaScript
AndRussia, 2020-06-18 10:54:35

Is it possible to draw canvas lines at minus coordinates?


How to continue lines whose coordinates have a minus value? Or how to place zero coordinates in the center of the canvas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2020-06-18
@AndRussia

Can.

how to place zero coordinates in the center of the canvas?

ctx.translate(w/2, h/2); // сдвигаем точку (0, 0) в центр холста

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question