What is the origin of "seeing spots" or "to see spots"?

that's all, just want to know where those phrases came from...
thanks!

Replies