Browse Source

Added specification of how the bits of the color raw value are packed

pull/1161/head
Chris Johnston 7 years ago
parent
commit
e8b3b493b0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Discord.Net.Core/Entities/Roles/Color.cs

+ 4
- 0
src/Discord.Net.Core/Entities/Roles/Color.cs View File

@@ -75,6 +75,10 @@ namespace Discord
public static readonly Color DarkerGrey = new Color(0x546E7A);

/// <summary> Gets the encoded value for this color. </summary>
/// <remarks>
/// This value is encoded as an unsigned integer value. The most-significant 8 bits contain the red value,
/// the middle 8 bits contain the green value, and the least-significant 8 bits contain the blue value.
/// </remarks>
public uint RawValue { get; }

/// <summary> Gets the red component for this color. </summary>


Loading…
Cancel
Save