[DSL] Expose ColorUtil methods to DSL rules (#3879)

New functions for RGBW introduced in #3849.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
pull/3884/head
Holger Friedrich 2023-11-22 21:36:39 +01:00 committed by GitHub
parent 8a6e7432cd
commit 3e3afd8cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,14 @@ public class CoreUtil {
return ColorUtil.hsbTosRgb(hsb);
}
public static int[] hsbToRgbw(HSBType hsb) {
return ColorUtil.hsbToRgbw(hsb);
}
public static PercentType[] hsbToRgbwPercent(HSBType hsb) {
return ColorUtil.hsbToRgbwPercent(hsb);
}
public static double[] hsbToXY(HSBType hsb) {
return ColorUtil.hsbToXY(hsb);
}