Inherits from CCEffect : NSObject
Declared in CCEffectHue.h

Overview

CCEffectHue adjusts the hue of the sprite or effect node it is attached to.

Tasks

Accessing Effect Attributes

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 hue

Declared In

CCEffectHue.h

Class Methods

effectWithHue:

Initializes a CCEffectHue object with the supplied parameters.

+ (id)effectWithHue:(float)hue

Parameters

hue

The desired hue adjustment.

Return Value

The CCEffectHue object.

Declared In

CCEffectHue.h

Instance Methods

init

Initializes a CCEffectHue object with a hue adjustment of 0.

- (id)init

Return Value

The CCEffectHue object.

Declared In

CCEffectHue.h

initWithHue:

Initializes a CCEffectHue object with the supplied parameters.

- (id)initWithHue:(float)hue

Parameters

hue

The desired hue adjustment.

Return Value

The CCEffectHue object.

Declared In

CCEffectHue.h