Package io.github.zeroone3010.yahueapi
Class XAndYAndBrightness
java.lang.Object
io.github.zeroone3010.yahueapi.XAndYAndBrightness
public class XAndYAndBrightness extends Object
-
Method Summary
Modifier and Type Method Description static doublegammaCorrection(float component)intgetBrightness()Brightness level.intgetBrightnessMax100()Brightness level.floatgetX()floatgetY()static XAndYAndBrightnessrgbToXy(Color color)StringtoString()
-
Method Details
-
getX
public float getX() -
getY
public float getY() -
getBrightness
public int getBrightness()Brightness level.- Returns:
- A number, max 255, for the old API (v1).
-
getBrightnessMax100
public int getBrightnessMax100()Brightness level.- Returns:
- A number, max 100, for the new API (v2).
-
rgbToXy
-
gammaCorrection
public static double gammaCorrection(float component) -
toString
-