diff options
Diffstat (limited to 'libs/ardour/ardour/lua_api.h')
-rw-r--r-- | libs/ardour/ardour/lua_api.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lua_api.h b/libs/ardour/ardour/lua_api.h index e3cf7bb30f..9ae6bf2ff6 100644 --- a/libs/ardour/ardour/lua_api.h +++ b/libs/ardour/ardour/lua_api.h @@ -118,6 +118,18 @@ namespace ARDOUR { namespace LuaAPI { * @returns 3 parameters: AutomationList, ControlList, ParamaterDescriptor */ int plugin_automation (lua_State *lua); + + /** + * A convenience function for colorspace HSL to RGB conversion. + * All ranges are 0..1 + * + * Example: + * @code + * local r, g, b, a = ARDOUR.LuaAPI.hsla_to_rgba (hue, saturation, luminosity, alpha) + * @endcode + * @returns 4 parameters: red, green, blue, alpha (in range 0..1) + */ + int hsla_to_rgba (lua_State *lua); } } /* namespace */ namespace ARDOUR { namespace LuaOSC { |