Source.cpp
// function that converts hex color to its rgb equivalent

function that converts hex color to its rgb equivalent
function that converts hex color to its rgb equivalent
stRGB HexToRgb(int hex) 
{
	stRGB rgb;
	rgb.r = (hex >> 16);
	rgb.g = (hex & 0x00ff00) >> 8;
	rgb.b = (hex & 0x0000ff);
	return rgb;
}
stRGB HexToRgb ( int hex ) { stRGB rgb ; rgb . r = ( hex >> 16 ) ; rgb . g = ( hex & 0x00ff00 ) >> 8 ; rgb . b = ( hex & 0x0000ff ) ; return rgb ; }
function that converts hex color to its rgb equivalent
function that converts hex color to its rgb equivalent