So just replace the call to ellipse() with something else. Want a rectangle? Try rect(). ("rect(x,y,40,40);") Want a line? Try line(). ("line(x,y,x+5,y+5);") Want a point? Try point(). ("point(x,y);") Want to draw something else there? Then draw something else there! What exactly did you want it to do?