Clock 9.02: Make Arc Move

image

The arc should move every second! After 60 seconds, it should form a full circle and repeat.

Hint: seconds = second() will count the number of seconds secondsAngle will calculate what angle the arc should be at, at the given second. To calculate, use this: secondsAngle = -seconds * (angle of circle / number of seconds)

Code Area

flowchart

	style A fill:#37bf19, stroke:#37bf19
	style B fill:#f79e45, stroke:#f79e45
	style C stroke:#6495ED
	style D stroke:#6495ED
	style E stroke:#6495ED
	
	A((Module 9.01)) --> B((Module 9.02))
	B --> C((Module 9.03))
	C --> D((Module 9.04))
	D --> E((Module 9.05))

	click A "https://info.strivemath.com/eca/future-projects/ufo-401-ellipse-1"
	click B "https://info.strivemath.com/eca/future-projects/ufo-401-ellipse-1/ufo-402-arc-ending-angle"
	click C "https://info.strivemath.com/eca/future-projects/ufo-401-ellipse-1/module-4-ufo/clock-903-rotate-arc"
	click D "https://info.strivemath.com/eca/future-projects/ufo-401-ellipse-1/ufo-404-arc-size"
	click E "https://info.strivemath.com/eca/future-projects/ufo-401-ellipse-1/ufo-405-circle-coordinates"
	
	subgraph Learning
	A & B & C & D & E
	end

	subgraph Clock
	end

Module X: {Title}