Skip to content

Commit

Permalink
remove invalid comment
Browse files Browse the repository at this point in the history
  • Loading branch information
miklcct committed Dec 10, 2024
1 parent 7ce751b commit b667e96
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ private ColorUtils() {}
public static double computeLuminance(Color color) {
//gets float of RED, GREEN, BLUE in range 0...1
float[] colorComponents = color.getRGBColorComponents(null);
//Calculates luminance based on https://stackoverflow.com/questions/596216/formula-to-determine-brightness-of-rgb-color
double r = linearizeColorComponent(colorComponents[0]);
double g = linearizeColorComponent(colorComponents[1]);
double b = linearizeColorComponent(colorComponents[2]);
Expand Down

0 comments on commit b667e96

Please sign in to comment.