AP Notes, Outlines, Study Guides, Vocabulary, Practice Exams and more!

Gridworld --darken color

2 posts / 0 new
Last post
scatteredclouds's picture
Joined: Jan 2008
Gridworld --darken color

Hi, ppl! I'm stuck with this question:
Modify the processActors method in ChamleonCritter, so that when the list of actors to process is empty, the color of ChamleonCritter will darken.

I only know three methods : setColor( Color c), getColor(Color c), Color(int r, int g, int b) but to make the critter darken, I will need the current values for r, g, b. But I dunno how.

cool800020's picture
Joined: Nov 2008

u can use setColor(getColor.Darken()) i think.
i know there's a method that darkens the color for u automatically, its under class color

Need Help?

We hope your visit has been a productive one. If you're having any problems, or would like to give some feedback, we'd love to hear from you.

For general help, questions, and suggestions, try our dedicated support forums.

If you need to contact the Course-Notes.Org web experience team, please use our contact form.

Need Notes?

While we strive to provide the most comprehensive notes for as many high school textbooks as possible, there are certainly going to be some that we miss. Drop us a note and let us know which textbooks you need. Be sure to include which edition of the textbook you are using! If we see enough demand, we'll do whatever we can to get those notes up on the site for you!