Grid: | ||
Tics Lines: |
|
Width
px
|
Hash Lines: |
|
Width
px
|
Labels: |
|
Font
px
|
Trace Lines: | ||
Robot 1: |
|
Width
px
|
Robot 2: |
|
Width
px
|
Robot 3: |
|
Width
px
|
Robot 4: |
|
Width
px
|
Axes: | x-axis | y-axis | Show Grid |
Grid: | 24x24 inches | 36x36 inches | 72x72 inches |
96x96 inches | 192x192 inches | ||
Quad: | 4 quadrants | 1 quadrant | Hardware |
Units: | US Customary | Metric |
Background: |
![]() |
|
|
|
/* Code generated by RoboBlockly v1.3 */ #include <chplot.h> CPlot plot; plot.strokeColor("orange"); plot.fillColor("orange"); plot.circle(0, 0, 2); plot.strokeColor("#663366"); plot.fillColor("#663366"); plot.ellipse(5, 5, 10, 4, 45); delaySeconds(1); plot.strokeColor("#993399"); plot.fillColor("#993399"); plot.ellipse(0, 7, 10, 4, 90); delaySeconds(1); plot.strokeColor("#cc33cc"); plot.fillColor("#cc33cc"); plot.ellipse(-5, 5, 10, 4, 135); plot.strokeColor("#cc66cc"); plot.fillColor("#cc66cc"); delaySeconds(1); plot.ellipse(-7, 0, 10, 4, 180); plot.strokeColor("#ff99ff"); plot.fillColor("#ff99ff"); delaySeconds(1); plot.ellipse(-5, -5, 10, 4, 225); plot.strokeColor("#ff99ff"); plot.fillColor("#ff99ff"); delaySeconds(1); plot.ellipse(0, -7, 10, 4, 270); plot.strokeColor("#cc66cc"); plot.fillColor("#cc66cc"); delaySeconds(1); plot.ellipse(5, -5, 10, 4, 315); plot.strokeColor("#993399"); plot.fillColor("#993399"); delaySeconds(1); plot.ellipse(7, 0, 10, 4, 360); plot.axisRange(PLOT_AXIS_XY, -12, 12); plot.ticsRange(PLOT_AXIS_XY, 2); plot.sizeRatio(1); plot.plotting();
Problem Statement: Create a flower centered at the origin, with 8 petals. Make each petal a different color, with the length of each petal being 10 inches. Make each petal appear 1 second after the petal to the right of it.The center circle and the first petal are already done for you. |
|||||||||||