Browse Source

Added int constructor to Color

pull/603/head
RogueException 8 years ago
parent
commit
0ce313c408
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/Discord.Net.Core/Entities/Roles/Color.cs

+ 8
- 1
src/Discord.Net.Core/Entities/Roles/Color.cs View File

@@ -28,7 +28,14 @@ namespace Discord
RawValue = RawValue =
((uint)r << 16) | ((uint)r << 16) |
((uint)g << 8) | ((uint)g << 8) |
b;
(uint)b;
}
public Color(int r, int g, int b)
{
RawValue =
((uint)r << 16) |
((uint)g << 8) |
(uint)b;
} }
public Color(float r, float g, float b) public Color(float r, float g, float b)
{ {


Loading…
Cancel
Save