turtle.Canvas.addtag_closest

Canvas.addtag_closest(newtag, x, y, halo=None, start=None)[source]

Add tag NEWTAG to item which is closest to pixel at X, Y. If several match take the top-most. All items closer than HALO are considered overlapping (all are closests). If START is specified the next below this tag is taken.