Is there a way that I can use relative units like vh or vw to draw on the canvas? I tried this:
ctx.fillRect('10vh', '10vh', '10vh', '10vh');
and even without the quotations but it only works if I use pixels. I need the shape to resize according to the viewport. Thanks in advance.