LearningProcessing icon indicating copy to clipboard operation
LearningProcessing copied to clipboard

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

Open pippinbarr opened this issue 8 years ago • 1 comments

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)

pippinbarr avatar May 11 '17 23:05 pippinbarr

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.

shiffman avatar May 14 '17 15:05 shiffman