Learning Math and CS with Robotics
Sign In

CSP Unit 3 Lesson 8.14b

Piano
Linkbot Image Mindstorm Image
Grid Size: S M L Simple View: MinView:
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 Save File Show Ch Edit Ch Console

		
Rubbish bin
Time