Also, you are drawing inside your serialEvent() function. Accessing your canvas should be done inside your draw(). In other words, move anything that touches the sketch to draw().
Kf
Also, you are drawing inside your serialEvent() function. Accessing your canvas should be done inside your draw(). In other words, move anything that touches the sketch to draw().
Kf