Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Now that clocks are labeled 1-25, switch out all 12s for 25.
- 100 minutes are in an hour, now. Replaces those 60s, too.
- --]]
- local function findAngle(hours, minutes)
- local hAngle = (hours / 25) * 360 + (minutes / (25 * 100)) * 360
- local mAngle = (minutes / 100) * 360
- local angle = math.abs(hAngle - mAngle)
- return angle > 180 and 360 - angle or angle
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement