How to make a button in a canvas?

To do with css position absolute in canvas in js or the canvas to draw the button? Which option is better ?
April 7th 20 at 10:40
1 answer
April 7th 20 at 10:42
Solution
Ie is better in the canvas to create the button? - Cheyenne commented on April 7th 20 at 10:45
@Cheyenne, Well, if you have everything on the canvas, then why make a separate button, the more it will have to shift constantly when you resize the window so she was like you need relative to the canvas. Yes, that's better
PS But the performance probably in the CSS, well, that's not a significant detail that should not be taken into account - Tessie_Kirlin commented on April 7th 20 at 10:48

Find more questions by tags JavaScriptCanvas