![]() |
API 0.9.5
|
Go to the source code of this file.
Functions | |
function | CPColorWithImages () |
Variables | |
CPColorPatternIsHorizontal = NO | |
CPColorPatternIsVertical = YES |
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.
CPColorPatternIsVertical = YES |