change from applet to processing canvas