ElementsControls
AddColorpicker
Adds a color picker, with optional transparency and live preview behavior.
AddColorpicker
What it does
Adds a color picker, with optional transparency and live preview behavior.
When to use it
Use it for theme editors, drawing tools, accent selection, or any feature that accepts a Color3 value.
ElementFunction:AddColorpicker(ColorpickerConfig)
RightGroup:AddColorpicker({
Name = "Accent",
Default = Color3.fromRGB(73, 130, 230),
Transparency = 0,
Callback = function(color, transparency)
print(color, transparency)
end
})Behavior and return value
Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.