开发者

Problems with RGB and NSColor

开发者 https://www.devze.com 2023-03-11 01:14 出处:网络
I am using this code: #define MAATTACHEDWINDOW_DEFAULT_BACKGROUND_COLOR [NSColor colorWithCalibratedRed:59 green:89 blue:152 alpha:0.75]

I am using this code:

#define MAATTACHEDWINDOW_DEFAULT_BACKGROUND_COLOR [NSColor colorWithCalibratedRed:59 green:89 blue:152 alpha:0.75]

And trying to obtain a background color using RGB but it's giving me the color white. What did I do开发者_如何转开发 wrong?


The values you have passed in are incorrect for what it expects; they have to be between 0 and 1. Anything above 1 is set to 1.0.

0

精彩评论

暂无评论...
验证码 换一张
取 消