Learning Math and CS/STEAM with Robotics
Sign In

CSP Unit 3 Lesson 8.14a

Linkbot Image Mindstorm Image
Grid Size: S M L Simple View: MinView:
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"!

Workspace Load Save Ch Ch Shell Console
Rubbish bin