Skip to main content

LuvColor3Utils

Handles color manipulation in the HpLuv space.

https://www.hsluv.org/comparison/

Functions

lerp

LuvColor3Utils.lerp(
color0Color3,
color1Color3,
tnumber
) → Color3

Interpolates in LUV space.

fromColor3

LuvColor3Utils.fromColor3(color3Color3) → {
number,
number,
number
}

Converts from Color3 to LUV

toColor3

LuvColor3Utils.toColor3(luv{
number,
number,
number
}) → Color3

Converts from LUV to Color3

Show raw api
{
    "functions": [
        {
            "name": "lerp",
            "desc": "Interpolates in LUV space.",
            "params": [
                {
                    "name": "color0",
                    "desc": "",
                    "lua_type": "Color3"
                },
                {
                    "name": "color1",
                    "desc": "",
                    "lua_type": "Color3"
                },
                {
                    "name": "t",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Color3"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 23,
                "path": "src/color3utils/src/Shared/luv/LuvColor3Utils.lua"
            }
        },
        {
            "name": "fromColor3",
            "desc": "Converts from Color3 to LUV",
            "params": [
                {
                    "name": "color3",
                    "desc": "",
                    "lua_type": "Color3"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ number, number, number }"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 60,
                "path": "src/color3utils/src/Shared/luv/LuvColor3Utils.lua"
            }
        },
        {
            "name": "toColor3",
            "desc": "Converts from LUV to Color3",
            "params": [
                {
                    "name": "luv",
                    "desc": "",
                    "lua_type": "{ number, number, number }"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Color3"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 71,
                "path": "src/color3utils/src/Shared/luv/LuvColor3Utils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "LuvColor3Utils",
    "desc": "Handles color manipulation in the HpLuv space.\n\nhttps://www.hsluv.org/comparison/",
    "source": {
        "line": 8,
        "path": "src/color3utils/src/Shared/luv/LuvColor3Utils.lua"
    }
}