CCActionTintBy Class Reference
Inherits from | CCActionInterval : CCActionFiniteTime : CCAction : NSObject |
---|---|
Conforms to | NSCopying |
Declared in | CCActionInterval.h |
Overview
This action tints (colorizes) the target from current color to the specified color.
Note: Contrary to CCActionTintTo, this action is reversible.
Creating a Colorize Action
+ actionWithDuration:red:green:blue:
Creates a tint by action.
+ (id)actionWithDuration:(CCTime)duration red:(CGFloat)deltaRed green:(CGFloat)deltaGreen blue:(CGFloat)deltaBlue
Parameters
duration |
Action duration. |
---|---|
deltaRed |
Red delta color to tint. |
deltaGreen |
Green delta color to tint. |
deltaBlue |
Blue delta color to tint. |
Return Value
New tint by action.
Declared In
CCActionInterval.h
– initWithDuration:red:green:blue:
Initalizes a tint by action.
- (id)initWithDuration:(CCTime)duration red:(CGFloat)deltaRed green:(CGFloat)deltaGreen blue:(CGFloat)deltaBlue
Parameters
duration |
Action duration. |
---|---|
deltaRed |
Red delta color to tint. |
deltaGreen |
Green delta color to tint. |
deltaBlue |
Blue delta color to tint. |
Return Value
New tint by action.
Declared In
CCActionInterval.h