This program uses iterative processes to create grids of a certain size, then stamps coordinates along the x and y axes. When the red dot is moved, it "snaps" the dot to the nearest coordinate position.
Grid-drawing was cribbed largely from fullmoon's "Fun with Grids."