Java RGB Color Create rgb_xyz(double r)

Here you can find the source of rgb_xyz(double r)

Description

rgxyz

License

Open Source License

Declaration

public static double rgb_xyz(double r) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double rgb_xyz(double r) {

        if ((r /= 255.0) <= 0.04045) {
            return r / 12.92;
        } else {/*from ww w  .  j  a va 2  s  . c o m*/
            return Math.pow((r + 0.055) / 1.055, 2.4);
        }
    }
}

Related

  1. rgb(int r, int g, int b)
  2. rgb(int red, int green, int blue)
  3. RGB_GREEN(int rgb)
  4. RGB_MSE(int[] rgb1, int[] rgb2)
  5. RGB_PNSR(int[] rgb1, int[] rgb2)
  6. rgba(double r, double g, double b, double a)
  7. RGBA(int r, int g, int b, float a)
  8. RGBA(int r, int g, int b, int a)
  9. rgba(int red, int green, int blue)