Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Initialized Alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicc Alexander committed Aug 22, 2014
1 parent 754835c commit cc00da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chameleon/UIColor+Chameleon.m
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ + (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor

//Calculate Luminance
CGFloat luminance;
CGFloat red, green, blue, alpha;
CGFloat red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0;

//Check if color is transparent
if (alpha == 0) {
Expand Down Expand Up @@ -423,7 +423,7 @@ + (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor

//Calculate Luminance
CGFloat luminance;
CGFloat red, green, blue, alpha;
CGFloat red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0;
[backgroundColor getRed:&red green:&green blue:&blue alpha:&alpha];

//Check if color is transparent
Expand Down
Binary file not shown.

0 comments on commit cc00da4

Please sign in to comment.