You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
sync rate 0
` Define point 1 (center of screen)
x1 = screen width() / 2
y1 = screen height() / 2
` Grab new position for point 2
x2 = mousex()
y2 = mousey()
` Calculate angle between points
angle# = atanfull(x2-x1, y2-y1)
` Display the angle
text 10, 10, str$(angle#)
line x1, y1, x2, y2
Login to post a reply