D
D
dicem2019-01-31 14:12:59
JavaScript
dicem, 2019-01-31 14:12:59

How to make a responsive background in canvas?

In general, in order not to procrastinate for a long time: you just need to make a background in the canvas, which in its properties was identical to css:

width: 100%;
            height: 100%;
            background-image: url('images/bg_ho.png');
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
2
2cha.headz, 2019-01-31
@glagolew059

https://stackoverflow.com/questions/21961839/simul...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question