CCEffectBrightness Class Reference
| Inherits from | CCEffect : NSObject |
| Declared in | CCEffectBrightness.h |
Tasks
Accessing Effect Attributes
-
brightnessproperty
Initializing a CCEffectBrightness object
Creating a CCEffectBrightness object
Properties
brightness
The brightness adjustment value that is added to the pixel colors of the affected node. This is a normalized value in the range of [-1..1]. A value of -1 reduces the affected color to 0 (black), 0 results in no change, 1 increases the affected color to 1 (white).
@property (nonatomic) float brightnessDeclared In
CCEffectBrightness.hClass Methods
effectWithBrightness:
Creates a CCEffectBrightness object with the supplied parameters.
+ (id)effectWithBrightness:(float)brightnessParameters
- brightness
The desired brightness adjustment.
Return Value
The CCEffectBrightness object.
Declared In
CCEffectBrightness.hInstance Methods
init
Initializes a CCEffectBrightness object with a brightness adjustment of 0.
- (id)initReturn Value
The CCEffectBrightness object.
Declared In
CCEffectBrightness.hinitWithBrightness:
Initializes a CCEffectBrightness object with the supplied parameters.
- (id)initWithBrightness:(float)brightnessParameters
- brightness
The desired brightness adjustment.
Return Value
The CCEffectBrightness object.
Declared In
CCEffectBrightness.h