#import #include #include @interface NSColor (MGLAdditions) /** Converts the color into an mbgl::Color in sRGB space. */ - (mbgl::Color)mgl_color; /** Instantiates `NSColor` from an `mbgl::Color` */ + (NSColor *)mgl_colorWithColor:(mbgl::Color)color; - (mbgl::style::PropertyValue)mgl_colorPropertyValue; @end @interface NSExpression (MGLColorAdditions) + (NSExpression *)mgl_expressionForRGBComponents:(NSArray *)components; + (NSExpression *)mgl_expressionForRGBAComponents:(NSArray *)components; + (NSColor *)mgl_colorWithRGBComponents:(NSArray *)componentExpressions; @end