GP-1981 - Checkpoint - Function Call Graph

This commit is contained in:
dragonmacher 2022-07-01 18:36:03 -04:00 committed by ghidragon
parent 16e32317f0
commit 60b1ae8b44
15 changed files with 276 additions and 41 deletions

View file

@ -191,6 +191,17 @@ public class ColorUtils {
return color;
}
/**
* Returns a new color that is comprised of the given color's rgb value and the given alpha
* value.
* @param c the color
* @param alpha the alpha
* @return the new color
*/
public static Color withAlpha(Color c, int alpha) {
return new Color(c.getRed(), c.getGreen(), c.getBlue(), alpha);
}
/**
* Blender of colors
*/