added: new Color.Alpha extension method

This commit is contained in:
Chris
2025-07-29 12:33:08 -04:00
parent 1c27be3e2f
commit 706e53c5f7

View File

@@ -13,4 +13,7 @@ public static class MathExtensions{
return (to - origin).normalized; return (to - origin).normalized;
} }
public static Color Alpha(this Color input, float newAlpha){
return new Color(input.r, input.g, input.b, newAlpha);
}
} }