Angle Calculator

See inside

Move the mouse around :)

The angle in the top-left corner shows the angle of the blue line and the gradient shows the gradient of it.

Notes and Credits

This just started off as a test project to see the powers of atan, but then I decided it deserved a nice UI and this happened :)

Please love completely pen-rendered UI :)

How the angle of the blue line is calculated:
atan([mouse x] ÷ [mouse y]) + 180 × ([mouse y] < 0)

How the gradient of the blue line is calculated:
[mouse y] ÷ [mouse x]

How the angle from 90° is calculated:
(atan([mouse x] ÷ [mouse y]) + 270 - 180 × ([mouse y] < 0)) mod 360

This was inspired by a project I saw a while ago by @ScratchinJoJo:

Credit to @djpro for the pen text engine which I modified :)

Shared: 24 Oct 2015 Modified: 17 Oct 2017
Favorite this project 45
Love this project 71
Total views 943
View the remix tree  4
More projects by chooper100