mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 13:57:43 +01:00
feat: updated changelog
This commit is contained in:
parent
feb1dc0f03
commit
fcf29acc02
8 changed files with 393 additions and 126 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue