Use pixel density to scale the sketch

How to use pixel density () method so i can scale my sketch irrespective of the device.(device dpi)?

If i multiply the ellipses and fonts wont my collisions get disturbed?
If i have ellipse of radius r which i had already implemented and written code for detecting collisions of those ellipses.
Wont my code get faulty?

It is a scaling factor. So I think when you are going to measure distance between center of ellipses you will have to apply the factor on the distance as well, I think you have to adapt your code.

1 Like