vicc/chameleon

flatten bug

bre7 opened this issue · 1 comments

bre7 commented

color.flatten calls colorWithFlatVersionFrom(self), then [color getLightness:nil valueForA:nil valueForB:nil alpha:&colorAlpha];. Inside getLightness there's this code:

*L = [LABValues[0] floatValue];
*A = [LABValues[1] floatValue];
*B = [LABValues[2] floatValue];

but they are all nil

vicc commented

I'll take a look!