I had this once and it really scared me. It was a migraine aura. Please get assessed soon.
You should probably discus this with your doctor. There can be many causes - head injury w/ torn retina, migraines, many, many other causes. Have this checked out soon.
Take care and feel better.