Level 1.1 Line
Task
Draw a line starts with radius 120 by calling polarLine() function.
Code, Compile, Run
Type answer in the box below and run the code with Shift + Enter keys.
Hint
polarLine() is the function to draw a single line. Three parameters can be passed to the single drawing funciton by the following order: angle, radius, and distance (distance is an optional parameter).
For example:
(1) polarLine(0, 40, 0) draws a line starting with a radius of 40.
(2) polarLine(30, 40, 0) draws a line starting at angle 30, with a radius of 40.
(3) polarLine(30, 40, 40) draws a line starting at angle 30, with a radius of 40, and move 40 distance from center point.