BeatTheStreet/src/player.cpp
//Void function used to set the transparency, the percentage opaque is passed into the function as a parameter.
Void function used to set the transparency, the percentage opaque is passed into the function as a parameter.
Void function used to set the transparency the percentage opaque is passed into the function as a parameter .
void Player::settransparancy(float iPercent)
{
	int iAlphaAmmount = (2.55 * iPercent);
	sf::Color cPlayerColor(255,255,255, iAlphaAmmount);
	sPlayer.setColor(cPlayerColor);
}
void Player :: settransparancy ( float iPercent ) { int iAlphaAmmount = ( 2.55 * iPercent ) ; sf :: Color cPlayerColor ( 255 , 255 , 255 , iAlphaAmmount ) ; sPlayer . setColor ( cPlayerColor ) ; }
Void function used to set the transparency, the percentage opaque is passed into the function as a parameter.
Void function used to set the transparency the percentage opaque is passed into the function as a parameter .
//In the rgba scale alpha controls translucency and is measured between 0-255. The percentage parameter is times by 2.55 to give a true value //Set the color for the player, with all values to max , except for the alpha //The players color is set