PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/Frameworks/Debug/AppKit/browser.platform/CGGradient.j

http://github.com/jfahrenkrug/MapKit-HelloWorld
Unknown | 27 lines | 26 code | 1 blank | 0 comment | 0 complexity | bc1769b24a08fca7b35e9b6184f59687 MD5 | raw file
 1i;9;CGColor.ji;14;CGColorSpace.jc;750;
 2kCGGradientDrawsBeforeStartLocation = 1 << 0;
 3kCGGradientDrawsAfterEndLocation = 1 << 1;
 4CGGradientCreateWithColorComponents= function(aColorSpace, components, locations, count)
 5{
 6    if (arguments["count"] == NULL)
 7        var count = locations.length;
 8    var colors = [];
 9    while (count--)
10    {
11        var offset = count * 4;
12        colors[count] = CGColorCreate(aColorSpace, components.slice(offset, offset + 4));
13    }
14    return CGGradientCreateWithColors(aColorSpace, colors, locations);
15}
16CGGradientCreateWithColors= function(aColorSpace, colors, locations)
17{
18    return { colorspace:aColorSpace, colors:colors, locations:locations };
19}
20CGGradientRelease= function()
21{
22}
23CGGradientRetain= function(aGradient)
24{
25    return aGradient;
26}
27