CCEffectHue Class Reference
| Inherits from | CCEffect : NSObject |
| Declared in | CCEffectHue.h |
Tasks
Accessing Effect Attributes
-
hueproperty
Initializing a CCEffectHue object
Creating a CCEffectHue object
Properties
hue
The adjustment value that is used to shift the hue of the affected pixel colors. This value is in the range [-180..180] and represents the angle of rotation of the color values in the HSV color space. In HSV space, the color red is at 0 degrees, green is at 120 degrees, and blue is at 240 degrees. So if you have a red sprite and you apply a hue adjustment of 120 you will get a green sprite. Instead if you apply a hue adjustment of -120 you will get a blue sprite.
@property (nonatomic) float hueDeclared In
CCEffectHue.hClass Methods
effectWithHue:
Initializes a CCEffectHue object with the supplied parameters.
+ (id)effectWithHue:(float)hueParameters
- hue
The desired hue adjustment.
Return Value
The CCEffectHue object.
Declared In
CCEffectHue.hInstance Methods
init
Initializes a CCEffectHue object with a hue adjustment of 0.
- (id)initReturn Value
The CCEffectHue object.
Declared In
CCEffectHue.hinitWithHue:
Initializes a CCEffectHue object with the supplied parameters.
- (id)initWithHue:(float)hueParameters
- hue
The desired hue adjustment.
Return Value
The CCEffectHue object.
Declared In
CCEffectHue.h