blog games developers documentation portfolio gallery

Documentation:

ReplaceColor()

void ReplaceColor(Color color, Color newColor, float tolerance)



Scans all pixels and matches them with color. The more the pixel and the color are alike, the more the color of the pixel will be made to match newColor.
tolerance is a value between 0 (small tolerance) and 1 (big tolerance).
The alpha value of the original pixel stays untouched.





follow us