Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no_loop() when used in setup() don't call draw() but it should call draw() only once #175

Closed
tushar5526 opened this issue May 31, 2020 · 0 comments · Fixed by #176
Closed

Comments

@tushar5526
Copy link
Member

Describe the bug
According to processing https://processing.org/examples/noloop.html The noLoop() function causes draw() to only execute once. Without calling noLoop(), the code inside draw() is run continually.,
In p5py no_loop() don't call the draw() function once

To Reproduce

from p5 import *

def setup():
    background(255)     # Set stroke color to white
    no_loop()

def draw():
    print('called draw')

if __name__ == '__main__':
    run()

Current Behaviour
No output

Expected behavior
It should print called draw

System information:

  • p5 : cloned from github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant