mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 15:54:41 +00:00
Fix Lua Color HSL Constructor
Changed call from HSV to HSL for Lua Color HSL constructor.
This commit is contained in:
parent
33e9359340
commit
d429797359
@ -115,7 +115,7 @@ app::Color Color_new(lua_State* L, int index)
|
|||||||
int a = 255;
|
int a = 255;
|
||||||
if (lua_getfield(L, index, "alpha") != LUA_TNIL)
|
if (lua_getfield(L, index, "alpha") != LUA_TNIL)
|
||||||
a = lua_tointeger(L, -1);
|
a = lua_tointeger(L, -1);
|
||||||
color = app::Color::fromHsv(lua_tonumber(L, -2),
|
color = app::Color::fromHsl(lua_tonumber(L, -2),
|
||||||
lua_tonumber(L, -3),
|
lua_tonumber(L, -3),
|
||||||
lua_tonumber(L, -4), a);
|
lua_tonumber(L, -4), a);
|
||||||
lua_pop(L, 4);
|
lua_pop(L, 4);
|
||||||
|
Loading…
Reference in New Issue
Block a user