Just click start flag and watch while changing the resolution around.
By me. Thanks to Scratch. It works! All it took was the basic trigonometry ratios, cos (cosine) and sin(sine)!