Closed jxlotthe closed 3 years ago
Could you please post a small, complete example program that demonstrates the error?
Hi Jonathan here is the simplest code example that fails: def setup(): size(displayWidth, displayHeight) line(0, 0, width, height)
The code is taken from the Processing.py reference
@jdf What should be done about these entries?
The example code is misleading. Maybe just a print(displayWidth, displayHeight)
line instead? Or maybe:
def setup():
fullScreen()
line(0, 0, displayWidth, displayHeight)
I used the following code in Python Mode: size(displayWidth, displayHeight) and get the following error : NameError: global name 'displayWidth' is not defined
I thought displayWidth and displayHeight were system variables that did not need to be defined...