matthewjohnjamieson / comb

0 stars 2 forks source link

Hpdfix #30

Closed matthewjohnjamieson closed 6 years ago

matthewjohnjamieson commented 6 years ago

this pull should fix the problems we were having with the high density display devices such as my laptop and Ed's Surface. Devices with something like the mac retina display have more pixels per inch than normal, and that can cause all kinds of havoc with a program that accesses the pixel array in a p5.js sketch.

This fix simply sets the pixel density to 1 during setup, which represents normal pixel density you see on more common displays. This should make the program run as though it's always on a normal display.