Skip to content

Commit

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

Signed-off-by: Holger Friedrich <[email protected]>
  • Loading branch information
holgerfriedrich authored Nov 22, 2023
1 parent 8a6e743 commit 3e3afd8
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 3e3afd8

Please sign in to comment.