Can’t You See

Can’t you see! The red circle that tracks your gaze!

This took me way too long to figure out, and I hope no one has to deal with Drawing ever again. But yes, my first mistake was drawing circles wherever the user looked. With that, the trial image would disappear and a trail of red circles would appear. I couldn’t figure out how to make it appear as if a circle was moving.

Then I came to a revelation that I don’t need to draw anything. I can just put a PictureBox of a circle on the Form and then move it wherever the user looks. However, that left behind a trail of the old PictureBox’s location which is called a “ghosting” effect. This was a quick fix of setting the form’s DoubleBuffer property to true. This video is the fruitful result of a long and perilous undertaking. I hope you enjoy.

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php