Function Repository Resource:

Protractor

Source Notebook

Generate a graphical representation of a protractor

Contributed by: Danny Finn, MinHsuan Peng and Subesh Sonthalia

ResourceFunction["Protractor"][angles]

generates a protractor graphic with lines at the specified angles. Use Degree(°) to specify angles in degrees.

ResourceFunction["Protractor"][]

generates a protractor with no additional angle lines.

Details and Options

ResourceFunction["Protractor"] supports the following options:
ImageSize500the overall size of the protractor
“IncludeBaseline"Falsewhether to show a baseline at 0°

Examples

Basic Examples (2) 

Create a protractor with a list of angles to create a protractor with lines at those angles:

In[1]:=
ResourceFunction["Protractor"][{25 °, 85 °}]
Out[1]=

Create a protractor without any additional angle lines:

In[2]:=
ResourceFunction["Protractor"][]
Out[2]=

Options (2) 

ImageSize (1) 

Specify a numeric ImageSize:

In[3]:=
ResourceFunction["Protractor"][{25 °, 85 °}, ImageSize -> 600]
Out[3]=

IncludeBaseline (1) 

Create a protractor with a baseline:

In[4]:=
ResourceFunction["Protractor"]["IncludeBaseline" -> True]
Out[4]=

Publisher

Danny Finn

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.0.0 – 13 March 2024

Related Resources

License Information