RoboBlockly for Learning Coding and Math with Robots

0x48362412-12-24-36-48y48362412-12-24-36-48
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
Units: US Customary Metric
Background:

Robot 1

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

Robot 2

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

Robot 3

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

Robot 4

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

Draw a Cat
Problem Statement:
The pre-placed block will draw a circle at the origin for the face of the cat. Add drawing blocks to create ears, a nose, a mouth, whiskers, etc.
/* Code generated by RoboBlockly v2.0 */
#include <chplot.h>
CPlot plot;

plot.strokeColor("#cc9933");
plot.fillColor("#cc9933");
plot.circle(0, 0, 28);
plot.triangle(7, 26, 27, 8, 30, 30);
plot.triangle(-7, 26, -27, 8, -30, 30);
plot.fillColor("#ffcc66");
plot.ellipse(0, -10, 35, 21, 0);
plot.fillColor("#ffcccc");
plot.strokeColor("#ff6666");
plot.triangle(-5, -3, 5, -3, 0, -8);
plot.strokeColor("#ffcccc");
plot.triangle(14, 22, 23, 14, 25, 25);
plot.triangle(-14, 22, -23, 14, -25, 25);
plot.fillColor("white");
plot.strokeColor("white");
plot.ellipse(7, 7, 9, 15, 0);
plot.ellipse(-7, 7, 9, 15, 0);
plot.fillColor("black");
plot.strokeColor("black");
plot.ellipse(7, 5, 5, 9, 0);
plot.ellipse(-7, 5, 5, 9, 0);
plot.arc(0, 5, 20, 250, 290);
plot.line(0, -8, 0, -15);
plot.line(3, -9, 21, -5);
plot.line(-3, -9, -21, -5);
plot.line(3, -10, 21, -14);
plot.line(-3, -10, -21, -14);
plot.grid(PLOT_OFF);

plot.axisRange(PLOT_AXIS_XY, -48, 48);
plot.ticsRange(PLOT_AXIS_XY, 12);
plot.sizeRatio(1);
plot.plotting();
Blocks Save Blocks Load Blocks Show Ch Save Ch Workspace
Problem Statement:
The pre-placed block will draw a circle at the origin for the face of the cat. Add drawing blocks to create ears, a nose, a mouth, whiskers, etc.

		
Time