contrast static method
Implementation
static double contrast(rgb1, rgb2) {
return luminance(rgb2[0], rgb2[1], rgb2[2]) /
luminance(rgb1[0], rgb1[1], rgb1[2]);
}
static double contrast(rgb1, rgb2) {
return luminance(rgb2[0], rgb2[1], rgb2[2]) /
luminance(rgb1[0], rgb1[1], rgb1[2]);
}