diff --git a/AppKit/CPColor.j b/AppKit/CPColor.j index 9bd934b90..d4188c92e 100644 --- a/AppKit/CPColor.j +++ b/AppKit/CPColor.j @@ -623,6 +623,15 @@ url("data:image/png;base64,BASE64ENCODEDDATA") // if there is a pattern image @end +@implementation CPColor (Debugging) + ++ (CPColor)randomColor +{ + return [CPColor colorWithRed:RAND() green:RAND() blue:RAND() alpha:1.0]; +} + +@end + var CPColorComponentsKey = @"CPColorComponentsKey", CPColorPatternImageKey = @"CPColorPatternImageKey";