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 ran the following example on Ubuntu 21.04 in a virtualenv [1] from the docs (minor changes, I made y global to stop it complaining and added no_loop so it runs once), and there is a lot of console output [2]
[1] bot program
fromp5import*# The statement in setup() function# ececute once when the program beginsdefsetup():
globalysize(640, 360) # size must be the first statementstroke(255) # Set line drawing color to whitey=0# The statements in draw() are executed until the# program is stopped. Each statement is executed in# sequence and after the last line is read, the first# line is executed again.defdraw():
globalybackground(0) # Clear the screen with a black backgroundy=y-1ify<0:
y=heightline((0, y), (width, y))
no_loop()
print()
if__name__=='__main__':
run()
I ran the following example on Ubuntu 21.04 in a virtualenv [1] from the docs (minor changes, I made
y
global to stop it complaining and added no_loop so it runs once), and there is a lot of console output [2][1] bot program
[2] console output
The text was updated successfully, but these errors were encountered: