Reference for set_angle_mode
Indicate how angles should be provided to sketchingpy. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
set_angle_mode
Purpose
Change the units with which angles are expressed to Sketchingpy in transforms and shapes.
Snippet
Draw an arc from 90 to 360 degrees centered at x coordinate 100 and y coordinate 200 with width of 50 pixels and height of 60 pixels.
sketch.set_angle_mode('degrees') sketch.set_arc_mode('center') sketch.draw_arc(100, 200, 50, 60, 90, 360)
Parameters
- mode: The units (either 'degrees' or 'radians') in which to supply angles.
Examples
Availability
Available on all platforms.