3 ms·
Retina canvas isn't that hard. Set the width and height attributes of your canvas to be their CSS dimensions * devicePixelRatio, and scale all your drawing cal
by bsimpson 13y ago
Retina canvas isn't that hard. Set the width and height attributes of your canvas to be their CSS dimensions * devicePixelRatio, and scale all your drawing calls by devicePixelRatio.
I agree that it's annoying that you have to think about it, but since it's a low-level drawing API, I understand why it's done that way.