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

Example 19-6/Exercise 19-5: ellipse() doesn't work in clientEvent #210

Open
pippinbarr opened this issue May 11, 2017 · 1 comment
Open

Comments

@pippinbarr
Copy link

pippinbarr commented May 11, 2017

As far as I've been able to tell, calling drawing functions (like ellipse()) inside the clientEvent() function isn't actually drawing anything to the canvas.

My workaround was to save received data to an array and draw in draw(), but is this a known issue or conceivably something I'm screwing up myself. Can't seem to find anything easily online about this.

(This is in Processing 3.3.2 on Mac OS 10.12.4)

@shiffman
Copy link
Owner

Ah, thanks for filing this. Yes, this is my mistake to draw in clientEvent(), this will cause problems as it happens in a separate "thread." I'll try look into a better way to do this soon.

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

No branches or pull requests

2 participants