|
@@ -18,8 +18,8 @@
|
18
|
18
|
#define SWAP(x, y) do { __typeof(x) __ZZZZ__SWAP = x; x = y; y = __ZZZZ__SWAP; } while(0)
|
19
|
19
|
|
20
|
20
|
//Same value as LNInterpolationBehaviorUseDefault
|
21
|
|
-LNInterpolationBehavior const LNInterpolationBehaviorUseLABColorSpace = @"LNInterpolationBehaviorUseDefault";
|
22
|
|
-LNInterpolationBehavior const LNInterpolationBehaviorUseRGBColorSpace = @"LNInterpolationBehaviorUseRGB";
|
|
21
|
+LNInterpolationBehavior const RNNInterpolationBehaviorUseLABColorSpace = @"LNInterpolationBehaviorUseDefault";
|
|
22
|
+LNInterpolationBehavior const RNNInterpolationBehaviorUseRGBColorSpace = @"LNInterpolationBehaviorUseRGB";
|
23
|
23
|
|
24
|
24
|
extern double LNLinearInterpolate(double from, double to, double p);
|
25
|
25
|
|
|
@@ -149,7 +149,7 @@ static inline __attribute__((__always_inline__)) Color* LNInterpolateColor(Color
|
149
|
149
|
return toValue;
|
150
|
150
|
}
|
151
|
151
|
|
152
|
|
- return LNInterpolateColor(self, toValue, p, behavior == LNInterpolationBehaviorUseRGBColorSpace ? LNRGBComponentsFromColor : LNLabComponentsFromColor, behavior == LNInterpolationBehaviorUseRGBColorSpace ? LNColorFromRGBComponents : LNColorFromLabComponents);
|
|
152
|
+ return LNInterpolateColor(self, toValue, p, behavior == RNNInterpolationBehaviorUseRGBColorSpace ? LNRGBComponentsFromColor : LNLabComponentsFromColor, behavior == RNNInterpolationBehaviorUseRGBColorSpace ? LNColorFromRGBComponents : LNColorFromLabComponents);
|
153
|
153
|
}
|
154
|
154
|
|
155
|
155
|
@end
|