Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 359777776
  • Loading branch information
andrewoverton authored and material-automation committed Feb 26, 2021
1 parent 3f21de7 commit 191c0f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/private/MDFColorCalculations.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ CGFloat MDFRelativeLuminanceOfRGBComponents(const CGFloat *components) {
return 0.2126f * linearRGB[0] + 0.7152f * linearRGB[1] + 0.0722f * linearRGB[2];
}

CGFloat MDFMinAlphaOfColorOnBackgroundColor(UIColor *color,
UIColor *backgroundColor,
CGFloat MDFMinAlphaOfColorOnBackgroundColor(UIColor *color, UIColor *backgroundColor,
CGFloat minContrastRatio) {
CGFloat colorComponents[4];
CGFloat backgroundColorComponents[4];
Expand Down

0 comments on commit 191c0f3

Please sign in to comment.