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

A visualisation using threads #6

Closed
wants to merge 3 commits into from
Closed

Conversation

Maaxed
Copy link

@Maaxed Maaxed commented Sep 7, 2018

It's just running the algorithm in another thread si the window can redraw. (The code is based on the modifications of @Gothor)

@shiffman
Copy link
Member

shiffman commented Sep 8, 2018

Nice! How about using the built-in thread() function in Processing? Would that work?

@Gothor
Copy link

Gothor commented Sep 8, 2018

It seems to work. By extracting the run() method and sending it to thread().

Not sure there's a way to clean that try/catch at the end, though =/

Edit: And why not, after all ?! By using delay(5) instead of Thread.sleep(5) !

@duskvirkus duskvirkus closed this Oct 7, 2020
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 this pull request may close these issues.

4 participants