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

opacity

Opacity: conforms to CCRGBAProtocol protocol

@property (nonatomic) GLubyte opacity

Declared In

ColoredSquareSprite.h

size

Changes the size of the node (if supported, for example CCLayerColor).

@property (nonatomic, readwrite) CGSize size

Declared In

CCNodeExtensions.h

Class Methods

squareWithColor:size:

creates a Square with color and size

+ (id)squareWithColor:(ccColor4B)color size:(CGSize)sz

Declared In

ColoredSquareSprite.h

Instance Methods

containsPoint:

Returns true if the point is contained in (is on) the node. Respects rotation and scaling of the node.

- (BOOL)containsPoint:(CGPoint)point

Declared In

CCNodeExtensions.h

initWithColor:size:

initializes a Circle with color and radius

- (id)initWithColor:(ccColor4B)color size:(CGSize)sz

Declared In

ColoredSquareSprite.h