Skip to content

Commit

Permalink
[DSL] Expose ColorUtil methods to DSL rules
Browse files Browse the repository at this point in the history
New functions for RGBW introduced in openhab#3849.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
  • Loading branch information
holgerfriedrich committed Nov 21, 2023
1 parent 7af0259 commit 5d86b77
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ public static int hsbTosRgb(HSBType hsb) {
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);
}
Expand Down

0 comments on commit 5d86b77

Please sign in to comment.