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.
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.
As far as I've been able to tell, calling drawing functions (like
ellipse()
) inside theclientEvent()
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)