# CCEffectBrightness Class Reference

Inherits from | CCEffect : NSObject
Declared in | CCEffectBrightness.h

## Overview

CCEffectBrightness adjusts the brightness of the sprite or effect node it is attached to.

## Tasks

### Accessing Effect Attributes

- `brightness` property

### Initializing a CCEffectBrightness object

- `– init`
- `– initWithBrightness:`

### Creating a CCEffectBrightness object

- `+ effectWithBrightness:`

## Properties

### brightness

The brightness adjustment value that is added to the pixel colors of the affected node. This is a normalized value in the range of [-1..1]. A value of -1 reduces the affected color to 0 (black), 0 results in no change, 1 increases the affected color to 1 (white).

`@property (nonatomic) float brightness`

#### Declared In

`CCEffectBrightness.h`

## Class Methods

### effectWithBrightness:

Creates a CCEffectBrightness object with the supplied parameters.

`+ (id)effectWithBrightness:(float)brightness`

#### Parameters

brightness

  The desired brightness adjustment.

#### Return Value

The CCEffectBrightness object.

#### Declared In

`CCEffectBrightness.h`

## Instance Methods

### init

Initializes a CCEffectBrightness object with a brightness adjustment of 0.

`- (id)init`

#### Return Value

The CCEffectBrightness object.

#### Declared In

`CCEffectBrightness.h`

### initWithBrightness:

Initializes a CCEffectBrightness object with the supplied parameters.

`- (id)initWithBrightness:(float)brightness`

#### Parameters

brightness

  The desired brightness adjustment.

#### Return Value

The CCEffectBrightness object.

#### Declared In

`CCEffectBrightness.h`