mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-29 09:52:03 +00:00
Fixed: CPGradient reversed its colours.
This commit is contained in:
1 parent
db6a4d7042
commit
c509e6131a
1 file changed
+2
-2
+2
-2
@@ -35,8 +35,8 @@
|
||||
var cgColors = [],
|
||||
count = [someColors count],
|
||||
colorspace = CGColorSpaceCreateDeviceRGB;
|
||||
while (count--)
|
||||
cgColors.push(CGColorCreate(colorspace, [someColors[count] components]));
|
||||
for (var i = 0; i < count; i++)
|
||||
cgColors.push(CGColorCreate(colorspace, [someColors[i] components]));
|
||||
_gradient = CGGradientCreateWithColors(aColorSpace, cgColors, someLocations);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user