CCNodeGradient Class Reference
Inherits from | CCNodeColor : CCNode : CCResponder : NSObject |
---|---|
Declared in | CCNodeColor.h |
Overview
Draws a rectangle filled with a gradient.
The gradient node adds the following properties to the ones already provided by CCNodeColor:
- vector (direction)
- startColor and endColor (gradient colors)
If no vector is supplied, it defaults to (0, -1) - fading from top to bottom. Color is interpolated between the startColor and endColor along the given vector (starting at the origin, ending at the terminus).