E
E
Eugene2017-09-18 13:56:06
JavaScript
Eugene, 2017-09-18 13:56:06

How to change canvas origin?

Hello! I would like to make the canvas have its origin in the lower left corner. Is it possible to solve this issue without a formula for changing coordinates?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Stolyarov, 2017-09-18
@EShein

context.transform(1, 0, 0, -1, 0, canvas.height)
Source

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question