k
Size: a a a
k
GG
k
GG
GG
k
A
VD
VD
k
RM
VD
inline Uint32 getSkyGradientedColor(const SDL_Color color, const int i, const int horLine)
{
return ColorToUint(
clamp((int)(color.r * (float)(i - horLine + 256) / 256), 0, 255),
clamp((int)(color.g * (float)(i - horLine + 256) / 256), 0, 255),
clamp((int)(color.b * (float)(i - horLine + 256) / 256), 0, 255)
);
}
A
A
A
k
TW
A
A
A