ScratchData LogoScratchData
Back to popswilson's profile

Geometry Compass (center, radius, arc)

POpopswilson•Created July 15, 2015
Geometry Compass (center, radius, arc)
12
11
428 views
View on Scratch

Instructions

This project simulates a geometry compass. Set the radius, arc, x-cor, y-cor, using the sliders. Click on the green flag. The script will draw the arc of the circle you set with the sliders. Set the arc slider to 360º to get a full circle.

Description

This project is an extension to my Circle(center, radius) project. To compute the arc I knew that if a 60-sided polygon with a given radius draws a circle of 360º then drawing just 30 sides should draw an arc of 180 degrees, a semicircle. An arc of 1º equals 60/360º = 0.1666. Then instead of using 60 in the repeat block, the value in the arc slider is multiplied by 0.1666 and this value is used in the repeat block.

Project Details

Project ID70542210
CreatedJuly 15, 2015
Last ModifiedMarch 15, 2022
SharedJuly 18, 2015
Visibilityvisible
CommentsAllowed