31 if (locations === undefined || locations === NULL)
33 var num_of_colors = components.length / 4,
36 for (var idx = 0; idx < num_of_colors; idx++)
37 locations.push( idx / (num_of_colors - 1) );
40 if (count === undefined || count === NULL)
41 count = locations.length;
47 var offset = count * 4;
48 colors[count] =
CGColorCreate(aColorSpace, components.slice(offset, offset + 4));
56 return { colorspace:aColorSpace, colors:colors, locations:locations };
function CGGradientCreateWithColorComponents(aColorSpace, components, locations, count)
function CGGradientRelease()
function CGColorCreate(aColorSpace, components)
function CGGradientRetain(aGradient)
CGGradient kCGGradientDrawsBeforeStartLocation
kCGGradientDrawsAfterEndLocation
function CGGradientCreateWithColors(aColorSpace, colors, locations)