Hello PlantUML team,
To continue with color functions, here is a request for new Builtin functions:
1. %completion_color
Could you implement a Builtin function, named %completion_color (for example: for Gantt completed tacks color), with those characteristics:
- %completion_color(0) -> red, [or %completion_color("0%") -> red]
- %completion_color(100) -> green, [or %completion_color("100%") -> green]
as:
- x in [0, 100] -> toRGB(HSLColor(1.2 * x, 100, 50, 1))
[or x in ["0%", "100%"] -> toRGB(HSLColor(1.2 * ~int(x), 100, 50, 1)) - or hsluvToRgb(hsluv(1.2 * x, 100, 50, 1))
2. %hsluv_color
And more generic a HSL color function '%hsluv_color', which return a RGBa color, as:
- %hsluv_color(h, s, l, a) -> #RGBa color
3. Other %functions
With not also some other functions as:
- %hex2dec(<string>)
- %dec2hex(<int>)
I can perhaps help on that,
Regards,
Th.