We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d740f9 commit f925a71Copy full SHA for f925a71
Misc/ColorContrastRatio.java
@@ -21,14 +21,16 @@ public class ColorContrastRatio {
21
* @param args
22
*/
23
public static void main(String args[]) {
24
+ final ColorContrastRatio algorithmImpl = new ColorContrastRatio();
25
+
26
// Relative Luminance: 0.12215748057375966
27
final Color foreground = new Color(23, 103, 154);
28
29
// Relative Luminance: 0.7898468477881603
30
final Color background = new Color(226, 229, 248);
31
32
// Contrast Ratio: 4.878363954846178
- final double contrastRatio = getContrastRatio(foreground, background);
33
+ final double contrastRatio = algorithmImpl.getContrastRatio(foreground, background);
34
35
System.out.println(contrastRatio);
36
}
0 commit comments