Barobo
PortalSign In
HomeShopTutorialsFree CurriculumHour of Code
RoboBlockly for Learning Math and Coding

Piano
Linkbot Image Mindstorm Image Cursor Image
0x36302418126y36302418126
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
Labels: x-axis y-axis Show Grid
Grid: 12x12 inches 24x24 inches 36x36 inches
72x72 inches 96x96 inches 192x192 inches
Quad: 4 Quadrants 1 Quadrant 1&4 Quadrants
Units: US Customary Metric
Background: Background Image

Robot 1

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 2

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (6 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 3

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (12 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 4

Linkbot
Mindstorm
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (18 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in
Draw Regular Polygons
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
CPlot plot;

plot.strokeColor("white");
plot.fillColor("white");
plot.strokeWidth(1);
plot.regularPolygon(9, 30, 3, 4.1, 0);
plot.text("Equilateral", PLOT_TEXT_LEFT, 6, 26);
plot.text("Triangle", PLOT_TEXT_LEFT, 6, 24);
plot.regularPolygon(18, 30, 4, 3.8, 0);
plot.text("Square", PLOT_TEXT_LEFT, 16, 24);
plot.regularPolygon(27, 30, 5, 3.5, 0);
plot.text("Pentagon", PLOT_TEXT_LEFT, 24, 24);
plot.regularPolygon(9, 18, 6, 3.2, 0);
plot.text("Hexagon", PLOT_TEXT_LEFT, 6, 12);
plot.regularPolygon(18, 18, 7, 2.9, 0);
plot.text("Heptagon", PLOT_TEXT_LEFT, 15, 12);
plot.regularPolygon(27, 18, 8, 2.6, 0);
plot.text("Octagon", PLOT_TEXT_LEFT, 24, 12);
plot.regularPolygon(9, 6, 9, 2.3, 0);
plot.text("Nonagon", PLOT_TEXT_LEFT, 6, 1);
plot.regularPolygon(18, 6, 10, 2, 0);
plot.text("Decagon", PLOT_TEXT_LEFT, 15, 1);
plot.grid(PLOT_OFF);

plot.axisRange(PLOT_AXIS_XY, 0, 36);
plot.ticsRange(PLOT_AXIS_XY, 6);
plot.sizeRatio(1);
plot.plotting();
Load Blocks
Hardware
LArduino
Workspace Show Ch Save File
Problem Statement:
The pre-placed blocks draw and label a regular, or equilateral, triangle and a square. Add more blocks to draw the rest of the regular polygons. Adjust side lengths as necessary to keep the shapes at about the same size. Make sure to label them correctly.

		
Rubbish bin
Time