ColoredSquareSprite Class Reference
Inherits from | CCNode : NSObject |
Conforms to | CCBlendProtocol CCRGBAProtocol |
Declared in | ColoredSquareSprite.h |
Tasks
-
size
Changes the size of the node (if supported, for example CCLayerColor).
property -
opacity
Opacity: conforms to CCRGBAProtocol protocol
property -
color
Opacity: conforms to CCRGBAProtocol protocol
property -
blendFunc
BlendFunction. Conforms to CCBlendProtocol protocol
property -
+ squareWithColor:size:
creates a Square with color and size
-
– initWithColor:size:
initializes a Circle with color and radius
-
– containsPoint:
Returns true if the point is contained in (is on) the node. Respects rotation and scaling of the node.
Properties
blendFunc
BlendFunction. Conforms to CCBlendProtocol protocol
@property (nonatomic, readwrite) ccBlendFunc blendFunc
Declared In
ColoredSquareSprite.h
color
Opacity: conforms to CCRGBAProtocol protocol
@property (nonatomic) ccColor3B color
Declared In
ColoredSquareSprite.h