Plot circles until the user right-clicks. If the circles intersect, they will change to the same random color. This was a response to a question in MATLAB's community. Example