HSL color computation in Lua