This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Added int constructor to Color
pull/603/head
RogueException
8 years ago
parent
e92cfd20ac
commit
0ce313c408
1 changed files
with
8 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 =
((uint)r << 16) |
((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)
{
Write
Preview
Loading…
Cancel
Save