diff --git a/AppKit/CPColor.j b/AppKit/CPColor.j index 16ef6411f..268ab4e31 100644 --- a/AppKit/CPColor.j +++ b/AppKit/CPColor.j @@ -658,6 +658,30 @@ var cachedBlackColor, ]; } +/*! + Returns the hue component, the H in HSB, of the receiver. +*/ +- (float)hueComponent +{ + return [self hsbComponents][0]; +} + +/*! + Returns the saturation component, the S in HSB, of the receiver. +*/ +- (float)saturationComponent +{ + return [self hsbComponents][1]; +} + +/*! + Returns the brightness component, the B in HSB, of the receiver. +*/ +- (float)brightnessComponent +{ + return [self hsbComponents][2]; +} + /*! Returns the CSS representation of this color. The color will be in one of the following forms: