You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I took a look at how p5.js did this, and it wasn't a feature like I original thought. They just add a multiplier in the dom. I was able to fix it by basically adding a density= kwarg to the size() in setup. After digging deep into how pyglet is 'grabbing' the resolution, I think it's impossible to get the native resolution (it's .5 the actual resolution). But! Funny enough, the actual pixel rendering is correct. So it's just the pyglet window that gets scaled down to the proper size. I'll attempt to do a pull request later (never done one before!)
Test script: p5-examples/basics/color/color_variables.py
Expected behavior:

Actual behavior
Errors produced (if any): None
p5 version: 2b96dfc
Python version: Python 3.6
Operating System: Mac OS
The text was updated successfully, but these errors were encountered: