Go to the source code of this file.
|
function | CFHashCode (aCFObject) |
|
function | CGColorCreate (aColorSpace, components) |
|
function | CGColorCreateCopy (aColor) |
|
function | CGColorCreateCopyWithAlpha (aColor, anAlpha) |
|
function | CGColorCreateGenericCMYK (cyan, magenta, yellow, black, alpha) |
|
function | CGColorCreateGenericGray (gray, alpha) |
|
function | CGColorCreateGenericRGB (red, green, blue, alpha) |
|
function | CGColorCreateWithPattern (aColorSpace, aPattern, components) |
|
function | CGColorEqualToColor (lhs, rhs) |
|
function | CGColorGetAlpha (aColor) |
|
function | CGColorGetColorSpace (aColor) |
|
function | CGColorGetComponents (aColor) |
|
function | CGColorGetConstantColor (aColorName) |
|
function | CGColorGetNumberOfComponents (aColor) |
|
function | CGColorGetPattern (aColor) |
|
function | CGColorRelease () |
|
function | CGColorRetain (aColor) |
|
function CFHashCode |
( |
aCFObject |
| ) |
|
function CGColorCreate |
( |
aColorSpace |
, |
|
|
components |
|
|
) |
| |
Creates a new CGColor.
- Parameters
-
aColorSpace | the CGColorSpace of the color |
components | the color's intensity values plus alpha |
- Returns
- CGColor the new color object CGColor
Definition at line 69 of file CGColor.j.
function CGColorCreateCopy |
( |
aColor |
| ) |
|
Creates a copy of a color... but not really. CGColors are immutable, so to be efficient, this function will just return the same object that was passed in.
- Parameters
-
aColor | the CGColor to 'copy' |
- Returns
- CGColor the color copy CGColor
Definition at line 94 of file CGColor.j.
function CGColorCreateCopyWithAlpha |
( |
aColor |
, |
|
|
anAlpha |
|
|
) |
| |
Creates a copy of the color with a specified alpha.
- Parameters
-
aColor | the color object to copy |
anAlpha | the new alpha component for the copy (0 .0-1 .0 ) . |
- Returns
- CGColor the new copy CGColor
Definition at line 149 of file CGColor.j.
function CGColorCreateGenericCMYK |
( |
cyan |
, |
|
|
magenta |
, |
|
|
yellow |
, |
|
|
black |
, |
|
|
alpha |
|
|
) |
| |
Creates a CMYK color.
- Parameters
-
cyan | the cyan component (0 .0-1 .0 ) . |
magenta | the magenta component (0 .0-1 .0 ) . |
yellow | the yellow component (0 .0-1 .0 ) . |
black | the black component (0 .0-1 .0 ) . |
alpha | the alpha component (0 .0-1 .0 ) . |
- Returns
- CGColor the CMYK based color CGColor
Definition at line 136 of file CGColor.j.
function CGColorCreateGenericGray |
( |
gray |
, |
|
|
alpha |
|
|
) |
| |
Creates a gray color object.
- Parameters
-
gray | the value to use for the color intensities (0 .0-1 .0 ) . |
alpha | the gray's alpha value (0 .0-1 .0 ) . |
- Returns
- CGColor the new gray color object CGColor
Definition at line 107 of file CGColor.j.
function CGColorCreateGenericRGB |
( |
red |
, |
|
|
green |
, |
|
|
blue |
, |
|
|
alpha |
|
|
) |
| |
Creates an RGB color.
- Parameters
-
red | the red component (0 .0-1 .0 ) .. |
green | the green component (0 .0-1 .0 ) . |
blue | the blue component (0 .0-1 .0 ) . |
alpha | the alpha component (0 .0-1 .0 ) . |
- Returns
- CGColor the RGB based color CGColor
Definition at line 121 of file CGColor.j.
function CGColorCreateWithPattern |
( |
aColorSpace |
, |
|
|
aPattern |
, |
|
|
components |
|
|
) |
| |
Creates a color using the specified pattern.
- Parameters
-
aColorSpace | the CGColorSpace |
aPattern | the pattern image |
components | the color components plus the alpha component |
- Returns
- CGColor the patterned color CGColor
Definition at line 177 of file CGColor.j.
function CGColorEqualToColor |
( |
lhs |
, |
|
|
rhs |
|
|
) |
| |
Determines if two colors are the same.
- Parameters
-
lhs | the first CGColor |
rhs | the second CGColor |
- Returns
YES
if the two colors are equal. NO
otherwise.
Definition at line 192 of file CGColor.j.
function CGColorGetAlpha |
( |
aColor |
| ) |
|
Returns the color's alpha component.
- Parameters
-
- Returns
- float the alpha component (
0
.0-1
.0
)
. CGColor
Definition at line 226 of file CGColor.j.
function CGColorGetColorSpace |
( |
aColor |
| ) |
|
Returns the CGColor's color space.
- Returns
- CGColorSpace CGColor
Definition at line 238 of file CGColor.j.
function CGColorGetComponents |
( |
aColor |
| ) |
|
Returns the CGColor's components including the alpha in an array.
- Parameters
-
- Returns
- CPArray the color's components
Definition at line 249 of file CGColor.j.
function CGColorGetConstantColor |
( |
aColorName |
| ) |
|
function CGColorGetNumberOfComponents |
( |
aColor |
| ) |
|
Returns the number of color components (including alpha) in the specified color.
- Parameters
-
- Returns
- CPNumber the number of components CGColor
Definition at line 261 of file CGColor.j.
function CGColorGetPattern |
( |
aColor |
| ) |
|
Gets the CGColor's pattern.
- Parameters
-
- Returns
- CGPatternFIXME the pattern image CGColor
Definition at line 272 of file CGColor.j.
function CGColorRelease |
( |
| ) |
|
This function is for source compatibility.
Definition at line 58 of file CGColor.j.
function CGColorRetain |
( |
aColor |
| ) |
|
This function is for source compatibility.
Definition at line 50 of file CGColor.j.
var CFTypeGlobalCount = 0 |
kCGColorBlack = "kCGColorBlack" |
kCGColorClear = "kCGColorClear" |
kCGColorWhite = "kCGColorWhite" |