Class CoreUtil
java.lang.Object
org.openhab.core.model.script.actions.CoreUtil
This class provides static methods mapping methods from package org.openhab.core.util
- Author:
- Laurent Garnier - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
static PercentType[]
hsbToRgbPercent
(HSBType hsb) static int[]
static PercentType[]
hsbToRgbwPercent
(HSBType hsb) static int
static double[]
static double[]
static HSBType
rgbToHsb
(int[] rgb) static HSBType
rgbToHsb
(PercentType[] rgb) static HSBType
xyToHsb
(double[] xy) static HSBType
xyToHsb
(double[] xy, double[] gamutR, double[] gamutG, double[] gamutB)
-
Constructor Details
-
CoreUtil
public CoreUtil()
-
-
Method Details
-
hsbToRgb
-
hsbToRgbPercent
-
hsbTosRgb
-
hsbToRgbw
-
hsbToRgbwPercent
-
hsbToXY
-
hsbToXY
-
rgbToHsb
- Throws:
IllegalArgumentException
-
rgbToHsb
- Throws:
IllegalArgumentException
-
xyToHsb
- Throws:
IllegalArgumentException
-
xyToHsb
public static HSBType xyToHsb(double[] xy, double[] gamutR, double[] gamutG, double[] gamutB) throws IllegalArgumentException - Throws:
IllegalArgumentException
-