public static void RGBToCieLuv(this RGBColorSystem @this, float r, float g, float b, out float l, out float u, out float v, float[] referenceWhite = null) { float x, y, z; @this.RGBToCieXYZ(r, g, b, out x, out y, out z); CieLuvUtils.CieXYZToLuv(x, y, z, out l, out u, out v, referenceWhite); }
public static void CieLuvToRGB(this RGBColorSystem @this, float l, float u, float v, out float r, out float g, out float b, float[] referenceWhite = null) { float x, y, z; CieLuvUtils.LuvToCieXYZ(l, u, v, out x, out y, out z, referenceWhite); @this.CieXYZToRGB(x, y, z, out r, out g, out b); }
public static void RGBToCieLab(this RGBColorSystem @this, float r, float g, float b, out float labL, out float labA, out float labB, float[] referenceWhite = null) { float x, y, z; @this.RGBToCieXYZ(r, g, b, out x, out y, out z); CieLabUtils.CieXYZToLab(x, y, z, out labL, out labA, out labB, referenceWhite); }
public static void CieLabToRGB(this RGBColorSystem @this, float l, float a, float b, out float rgbR, out float rgbG, out float rgbB, float[] referenceWhite = null) { float x, y, z; CieLabUtils.LabToCieXYZ(l, a, b, out x, out y, out z, referenceWhite); @this.CieXYZToRGB(x, y, z, out rgbR, out rgbG, out rgbB); }
public static void RGBToCieXYZ(this RGBColorSystem @this, float r, float g, float b, out float x, out float y, out float z) { float lr, lg, lb; @this.CompandedRgbToLinearRgb(r, g, b, out lr, out lg, out lb); @this.LinearRgbToCieXYZ(lr, lg, lb, out x, out y, out z); }
public static void CieXYZToRGB(this RGBColorSystem @this, float x, float y, float z, out float r, out float g, out float b) { float lr, lg, lb; @this.CieXYZToLinearRgb(x, y, z, out lr, out lg, out lb); @this.LinearRgbToCompandedRgb(lr, lg, lb, out r, out g, out b); }
public static void RGBToLCh( this RGBColorSystem @this, float r, float g, float b, out float l, out float c, out float h, LxyModel model = LxyModel.Lab, float[] referenceWhite = null) { float x, y, z; @this.RGBToCieXYZ(r, g, b, out x, out y, out z); LChUtils.CieXYZToLCh(x, y, z, out l, out c, out h, model, referenceWhite); }
public static void LChToRGB( this RGBColorSystem @this, float l, float c, float h, out float r, out float g, out float b, LxyModel model = LxyModel.Lab, float[] referenceWhite = null) { float x, y, z; LChUtils.LChToCieXYZ(l, c, h, out x, out y, out z, model, referenceWhite); @this.CieXYZToRGB(x, y, z, out r, out g, out b); }