// The Rose drawFlower method // This method prints the image of the individual rose onto the garden image. // If a new color is specified, it changes the original color to the new color here // Returns: Nothing // Parameters: BMP*, int, int void Rose::drawFlower(BMP* garden, int CoordX, int CoordY) { int width = flowerImage->TellWidth(); int height = flowerImage->TellHeight(); for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { if (getNewColor() == NULL) { *((*garden)(CoordX+i, CoordY+j)) = *(*flowerImage)(i,j); } else { *((*garden)(CoordX+i, CoordY+j)) = changeColors(originColor, getNewColor(), (*flowerImage)(i,j)); } } } }
void ParticleColorManager::updateColors(ParticleGroup* particleGroup, int framerate) { for (std::list<Particle*>::iterator tmpIt = particleGroup->particles.begin(); tmpIt != particleGroup->particles.end(); tmpIt++) { (*tmpIt)->color = getNewColor(*tmpIt); } if (trasitionRunnedSeconds < trasitionLength) trasitionRunnedSeconds += (float) 1 / framerate; }
/** * Bring up the dialog to change the users background color. */ void TextOptionsImp::changeUserBGColor(){ getNewColor(chat_yourbg_color, chat_color_ybcolor); }
/** * Bring up the dialog to change the buddy background color. */ void TextOptionsImp::changeBuddyBGColor(){ getNewColor(chat_contactbg_color, chat_color_bbcolor); }
/** * Bring up the dialog to change the buddy name text color. */ void TextOptionsImp::changeBuddyNameColor(){ getNewColor(chat_contactName_color, chat_color_bname); }
/** * Bring up the dialog to change the user name text color. */ void TextOptionsImp::changeUserNameColor(){ getNewColor(chat_yourName_color, chat_color_yname); }
/** * Bring up the dialog to change the contact's text color. */ void TextOptionsImp::changeBuddyTextColor(){ getNewColor(chat_contactText_color, chat_color_btext); }
/** * Bring up the dialog to change the user text color. */ void TextOptionsImp::changeUserTextColor(){ getNewColor(chat_yourText_color, chat_color_ytext); }
Player::Player() { this->color = getNewColor(); std::cerr<<"Player creado con numero: "<<color<<std::endl; }