Inherits from CCEffect : NSObject
Declared in CCEffectPixellate.h

Overview

CCEffectPixellate adjusts the size of the pixels of the sprite or effect node it is attached to.

Tasks

Accessing Effect Attributes

Initializing a CCEffectPixellate object

Properties

blockSize

The resulting size of the pixel blocks of the affected node. This value is specified in points and is in the range [1..inf]. A value of 1 results in no change to the affected pixels and larger values result in larger output pixel blocks.

@property (nonatomic) float blockSize

Declared In

CCEffectPixellate.h

Class Methods

effectWithBlockSize:

Creates a CCEffectPixellate object with the supplied parameters.

+ (id)effectWithBlockSize:(float)blockSize

Parameters

blockSize

The desired block size.

Return Value

The CCEffectPixellate object.

Declared In

CCEffectPixellate.h

Instance Methods

init

Initializes a CCEffectPixellate object with a block size of 1.

- (id)init

Return Value

The CCEffectPixellate object.

Declared In

CCEffectPixellate.h

initWithBlockSize:

Initializes a CCEffectPixellate object with the supplied parameters.

- (id)initWithBlockSize:(float)blockSize

Parameters

blockSize

The desired block size.

Return Value

The CCEffectPixellate object.

Declared In

CCEffectPixellate.h