/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
double i;
CPlot plot;
for(i = 0; i <= 10; i += 0.5) {
plot.backgroundColor("#006600");
plot.noStrokeColor();
plot.fillOpacity(1);
plot.fillColor("red");
plot.circle(i, -0.25 * (i * i) + 18, 1);
plot.fillColor("black");
plot.fillOpacity(0.5);
plot.rectangle(-12, -12, 36, 4);
delaySeconds(0.001);
}
for(i = 10; i <= 23; i += 0.5) {
plot.backgroundColor("#006600");
plot.noStrokeColor();
plot.fillOpacity(1);
plot.fillColor("red");
plot.circle(i, -0.25 * pow(i - 20, 2) + 18, 1);
plot.fillColor("black");
plot.fillOpacity(0.5);
plot.rectangle(-12, -12, 36, 4);
delaySeconds(0.001);
}
for(i = 23; i >= 17; i -= 0.5) {
plot.backgroundColor("#006600");
plot.noStrokeColor();
plot.fillOpacity(1);
plot.fillColor("red");
plot.circle(i, -0.25 * pow(i - 27, 2) + 18, 1);
plot.fillColor("black");
plot.fillOpacity(0.5);
plot.rectangle(-12, -12, 36, 4);
delaySeconds(0.001);
}
for(i = 17; i >= -3; i -= 0.5) {
plot.backgroundColor("#006600");
plot.noStrokeColor();
plot.fillOpacity(1);
plot.fillColor("red");
plot.circle(i, -0.25 * pow(i - 7, 2) + 18, 1);
plot.fillColor("black");
plot.fillOpacity(0.5);
plot.rectangle(-12, -12, 36, 4);
delaySeconds(0.001);
}
plot.axisRange(PLOT_AXIS_XY, -12, 24);
plot.ticsRange(PLOT_AXIS_XY, 6);
plot.sizeRatio(1);
plot.plotting();