API  0.9.6
 All Classes Files Functions Variables Macros Groups Pages
CPColor.j File Reference

Go to the source code of this file.

Functions

function CPColorWithImages ()
 

Variables

 CPColorPatternIsHorizontal = NO
 
 CPColorPatternIsVertical = YES
 

Function Documentation

function CPColorWithImages ( )

To create a simple color with a pattern image:

CPColorWithImages(name, width, height{, bundle})

To create a color with a three part pattern image:

CPColorWithImages(slices{, orientation})

where slices is an array of three [name, width, height{, bundle}] arrays, and orientation is CPColorPatternIsVertical or CPColorPatternIsHorizontal. If orientatation is not passed, it defaults to CPColorPatternIsHorizontal.

To create a color with a nine part pattern image:

CPColorWithImages(slices);

where slices is an array of nine [name, width, height{, bundle}] arrays.

Definition at line 85 of file CPColor.j.

Variable Documentation

CPColorPatternIsHorizontal = NO

Orientation to use with CPColorPattern for horizontal patterns.

Definition at line 64 of file CPColor.j.

CPColorPatternIsVertical = YES

Orientation to use with CPColorPattern for vertical patterns.

Definition at line 59 of file CPColor.j.