Learning CS and Math with Robotics
Barobo

CSP Unit 3 Lesson 8.14a

Piano MinView
Linkbot Image Mindstorm Image
x061218243036y363024181260
Grid Lines:
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
Simple View: Grid Size: S M L
CSP Unit 3 Lesson 8.14a

Using your code from Lesson 8.13, add three new parameters to the drawFish function, named red, green, and blue. Modify the "fillColor" code block in the function so that it uses the "hex color with" code stub instead of the color menu. Then add function calls to your program to draw two or more fish with different colors. Remember that the hex color values run from 00 to FF and are treated as text, not numbers, so you function calls must use the text value stub (found in the Text 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.14a"!

Load Blocks
Hardware
LArduino
Workspace Show Ch Save File Console

		
Rubbish bin
Time