Inherits from CCEffect : NSObject
Declared in CCEffectBlur.h

Overview

CCEffectBlur performs blur operation on the pixels of the attached node.

Tasks

Accessing Effect Attributes

Initializing a CCEffectBlur object

Creating a CCEffectBlur object

Properties

blurRadius

The size of the blur. This value is in the range [0..6].

@property (nonatomic) NSUInteger blurRadius

Declared In

CCEffectBlur.h

Class Methods

effectWithBlurRadius:

Creates a CCEffectBlur object with the specified parameters.

+ (id)effectWithBlurRadius:(NSUInteger)blurRadius

Parameters

blurRadius

number of pixels blur will extend to (6 is the maximum, because we are limited by the number of varying variables that can be passed to a glsl program).

Return Value

The CCEffectBlur object.

Declared In

CCEffectBlur.h

Instance Methods

init

Initializes a CCEffectBlur object with the following default parameters: blurRadius = 2

- (id)init

Return Value

The CCEffectBlur object.

Declared In

CCEffectBlur.h

initWithPixelBlurRadius:

Initializes a CCEffectBlur object with the specified parameters.

- (id)initWithPixelBlurRadius:(NSUInteger)blurRadius

Parameters

blurRadius

number of pixels blur will extend to (6 is the maximum, because we are limited by the number of varying variables that can be passed to a glsl program).

Return Value

The CCEffectBlur object.

Declared In

CCEffectBlur.h