CCEffectContrast Class Reference
| Inherits from | CCEffect : NSObject |
| Declared in | CCEffectContrast.h |
Tasks
Accessing Effect Attributes
-
contrastproperty
Initializing a CCEffectContrast object
Creating a CCEffectContrast object
Properties
contrast
The contrast adjustment value that is used to scale the pixel colors of the affected node. This value is in the range [-1..1], and the napping of this value to the color scale factor is: pow(4.0, contrast). This means that an adjustment value of -1 scales the affected color by 0.25, 0 results in no change, and 1 scales the affected color by 4.
@property (nonatomic) float contrastDeclared In
CCEffectContrast.hClass Methods
effectWithContrast:
Initializes a CCEffectContrast object with the supplied parameters.
+ (id)effectWithContrast:(float)contrastParameters
- contrast
The desired contrast adjustment.
Return Value
The CCEffectContrast object.
Declared In
CCEffectContrast.hInstance Methods
init
Initializes a CCEffectContrast object with a contrast adjustment of 0.
- (id)initReturn Value
The CCEffectContrast object.
Declared In
CCEffectContrast.hinitWithContrast:
Initializes a CCEffectContrast object with the supplied parameters.
- (id)initWithContrast:(float)contrastParameters
- contrast
The desired contrast adjustment.
Return Value
The CCEffectContrast object.
Declared In
CCEffectContrast.h