I think that would be too slow. If you aren't doing too much drawing, you might be fine with using a list of coordinates, drawing a small square or circle at each one. Erasing would just remove those coordinates from the list. No code is required for that.