We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f1a99a commit 1496eb9Copy full SHA for 1496eb9
winapi.go
@@ -115,3 +115,19 @@ func BoolToBOOL(value bool) BOOL {
115
116
return 0
117
}
118
+
119
+func RGB(r, g, b byte) COLORREF {
120
+ return COLORREF(r) | (COLORREF(g) << 8) | (COLORREF(b) << 16)
121
+}
122
123
+func (p COLORREF) GetRValue() byte {
124
+ return byte(p)
125
126
127
+func (p COLORREF) GetGValue() byte {
128
+ return byte(p >> 8)
129
130
131
+func (p COLORREF) GetBValue() byte {
132
+ return byte(p >> 16)
133
0 commit comments