unfortunately my answer is: many things could cause this. floaters in the eye aren't uncommon. these tiny flecks of tissue can well float through your vision from time to time. the condition is usually harmless but in some cases can point to more serious underlying eye problems. so if this visual disturbance is a new symptom you should visit an ophthalmologist soon to get it checked out. migraine headaches also can include a component of visual disturbance called an 'aura. ' if you're experiencing the visual distortion you describe with a headache you'd be well-advised to see a medical professional for treatment. occasionally the type of symptoms you're describing can be an indicator of something serious like retinal detachment. if the symptoms are severe or you notice them getting rapidly worse please go to an emergency room. these conditions need to be treated promptly. otherwise you might start with your primary care provider or an eye doctor to see if you can get to the bottom of what's going on. good luck!
what causes moving visual distortions?