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
size() values are silently restricted to the display's resolution.
To Reproduce
from p5 import *
def print_sizes():
print(core.p5.sketch.physical_size[0], core.p5.sketch.physical_size[1])
print(core.p5.sketch.size[0], core.p5.sketch.size[1])
print(width, height) # globals / builtins set by p5
def setup():
size(4000, 4000)
no_loop()
print_sizes()
def draw():
print_sizes()
if __name__ == "__main__":
run()
Expected behavior
Canvas can be larger than screen. Alternately, is there a way to write to an off-screen buffer as in Processing? I'd like to produce high res output suitable for printing.
System information:
p5 0.7.1 / Python 3.9.1 / macOS 10.15.7
The text was updated successfully, but these errors were encountered:
Describe the bug
size()
values are silently restricted to the display's resolution.To Reproduce
Expected behavior
Canvas can be larger than screen. Alternately, is there a way to write to an off-screen buffer as in Processing? I'd like to produce high res output suitable for printing.
System information:
The text was updated successfully, but these errors were encountered: