File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 307
307
// / -----------------------------------------------------------------------
308
308
309
309
/* *
310
- * Linearly interpolate from this color to 'toColor'. Parameter t is normalised
310
+ * Linearly interpolate from this color to 'toColor'. Parameter alpha is normalised
311
311
*
312
312
* @param toColor Color to interpolate to.
313
- * @param t Normalised progress .
313
+ * @param alpha Normalised alpha opacity of toColor .
314
314
*
315
315
* @return The interpolated color.
316
316
*/
317
- - (CCColor*)interpolateTo : (CCColor *) toColor time : (float ) t ;
317
+ - (CCColor*)interpolateTo : (CCColor *) toColor alpha : (float ) alpha ;
318
318
319
319
@end
320
320
357
357
//
358
358
- (BOOL )isEqualToColor : (CCColor*) color ;
359
359
360
- @end
360
+ @end
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ - (BOOL) getWhite:(float *)white alpha:(float *)alpha
211
211
return YES ;
212
212
}
213
213
214
- - (CCColor*) interpolateTo : (CCColor *) toColor time : (float ) t
214
+ - (CCColor*) interpolateTo : (CCColor *) toColor alpha : (float ) t
215
215
{
216
216
return [CCColor colorWithCcColor4f: ccc4FInterpolated (self .ccColor4f, toColor.ccColor4f, t)];
217
217
}
You can’t perform that action at this time.
0 commit comments