Skip to main content

HSColorPicker

This item only works when running on the client. Client

Picker for hue and Saturation in HSV. See HSVColorPicker for the full color picker, which also allows you to select "Value".

Functions

new

HSColorPicker.new() → HSColorPicker

ObserveIsPressed

HSColorPicker:ObserveIsPressed() → BoolValue

Gets whether the color picker is pressed or not.

SetHSVColor

HSColorPicker:SetHSVColor(hsvColorVector3) → ()

Sets the HSVColor as a Vector3

GetHSVColor

HSColorPicker:GetHSVColor() → Vector3

Gets the color as an HSV Vector3

SetColor

HSColorPicker:SetColor(colorColor3) → ()

Sets the color

GetColor

HSColorPicker:GetColor() → Color3

Gets the color

GetSizeValue

HSColorPicker:GetSizeValue() → Vector3

Gets the size value for the HSColorPicker.

SetTransparency

HSColorPicker:SetTransparency(transparencynumber) → ()

Sets the transparency of the HSColorPicker

SetSize

HSColorPicker:SetSize(heightnumber) → ()

Sets the size of the color picker. This is in "line height" units.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "HSColorPicker"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 25,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "ObserveIsPressed",
            "desc": "Gets whether the color picker is pressed or not.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "BoolValue"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 85,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "SetHSVColor",
            "desc": "Sets the HSVColor as a Vector3",
            "params": [
                {
                    "name": "hsvColor",
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 104,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "GetHSVColor",
            "desc": "Gets the color as an HSV Vector3",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 114,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "SetColor",
            "desc": "Sets the color",
            "params": [
                {
                    "name": "color",
                    "desc": "",
                    "lua_type": "Color3"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 123,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "GetColor",
            "desc": "Gets the color",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Color3"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 133,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "GetSizeValue",
            "desc": "Gets the size value for the HSColorPicker.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Vector3"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 144,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "SetTransparency",
            "desc": "Sets the transparency of the HSColorPicker",
            "params": [
                {
                    "name": "transparency",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 157,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        },
        {
            "name": "SetSize",
            "desc": "Sets the size of the color picker. This is in \"line height\" units.",
            "params": [
                {
                    "name": "height",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 168,
                "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "HSColorPicker",
    "desc": "Picker for hue and Saturation in HSV. See [HSVColorPicker] for the full color picker,\nwhich also allows you to select \"Value\".",
    "realm": [
        "Client"
    ],
    "source": {
        "line": 8,
        "path": "src/colorpicker/src/Client/HSV/HSColorPicker.lua"
    }
}