drawBox in Code Playground


Hey there, the string color cannot be used with drawBox function. Try replacing that string with color variable you created.


How ? can you explain by a screenshot (program you have done) please

I don’t know, @Jayan_Babu. Try asking @Grasshopper_Ben. He might help you.

Is that what you want to do?.. I have iterate through the color array using a classic for loop and then I called drawBox().

You must iterate through the array first, else drawBox() will not work. Also notice that I’ve use color and not 'color' in the drawBox() function call.

I am from Mauritius

Thanks all for the support of this app…I got done with the courses so I’m now on practice just…