ScratchData LogoScratchData
Back to chooper100's profile

Angle Calculator

CHchooper100•Created October 24, 2015
Angle Calculator
111
70
1763 views
View on Scratch

Instructions

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.

Description

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: https://scratch.mit.edu/projects/84587556/ Credit to @djpro for the pen text engine which I modified :)

Project Details

Project ID84576472
CreatedOctober 24, 2015
Last ModifiedApril 30, 2024
SharedOctober 24, 2015
Visibilityvisible
CommentsAllowed