From b667e96b4be3648c258b59cca4c1d6a3f82f372f Mon Sep 17 00:00:00 2001 From: Michael Tsang Date: Tue, 10 Dec 2024 10:55:22 +0000 Subject: [PATCH] remove invalid comment --- .../main/java/org/opentripplanner/utils/color/ColorUtils.java | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/src/main/java/org/opentripplanner/utils/color/ColorUtils.java b/utils/src/main/java/org/opentripplanner/utils/color/ColorUtils.java index ea334391e38..8f0a8ecf7ea 100644 --- a/utils/src/main/java/org/opentripplanner/utils/color/ColorUtils.java +++ b/utils/src/main/java/org/opentripplanner/utils/color/ColorUtils.java @@ -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]);