feat: updated changelog

This commit is contained in:
goat 2023-10-03 22:25:35 +02:00
parent feb1dc0f03
commit fcf29acc02
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
8 changed files with 393 additions and 126 deletions

View file

@ -259,6 +259,15 @@ public static class ColorHelpers
hsv.A -= amount;
return HsvToRgb(hsv);
}
/// <summary>
/// Set alpha of a color.
/// </summary>
/// <param name="color">The color.</param>
/// <param name="alpha">The alpha value to set.</param>
/// <returns>The color with the set alpha value.</returns>
public static Vector4 WithAlpha(this Vector4 color, float alpha)
=> color with { W = alpha };
/// <summary>
/// Fade a color.