Barobo
PortalSign In
HomeShopTutorialsFree CurriculumAbout
RoboBlockly for Learning Math and Coding

CSP Unit 3 Lesson 8.14b

Piano
Linkbot Image Mindstorm 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

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 0 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in

Robot 2

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 6 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in

Robot 3

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

Robot 4

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 18 in)
Current Angle: 0 deg
Wheel Radius:
Track Width:
in
CSP Unit 3 Lesson 8.14b

Using your code from Lesson 8.14a, modify the "fillColor" code block in the drawFish function so that it uses the "color with" code stub instead of the "hex color with" code stub. Keep the parameters (red, green, blue) as they are. Then change the drawFish function calls in your program so that the parameters used are numbers instead of text, with values between 0 and 255. (Remember that the number stub is found in the Math tab menu.)

See the hint if you get stuck, and don't forget to save your work to the cloud in an xml file named "YourName_Lesson8.14b"!

Load Blocks
Hardware
LArduino
Workspace Show Ch Console Save File

		
Rubbish bin
Time