| Picked value | Color3 or ColorSequence (+ transparency, rotation, animation, speed when enabled) |
| Created by | Section:AddColorpicker |
Two kinds of value
There are two kinds of value to think about:- What the user picked: the static color or gradient they chose, saved to their config. Read with
Peek*, subscribe withOnChange. - What you should draw right now: the same color, but if they enabled an animation it changes every frame. Read with
Get*, subscribe withOnUpdate.
GetColor
Color3 to draw right now. If they picked a gradient, you get its first color.
GetGradient
ColorSequence. Single colors are wrapped as a one-stop gradient.
GetTransparency
0..1. 0 if the picker doesn’t have a transparency slider.
GetRotation
GetSnapshot
{ color, gradient, transparency, rotation }. See ColorSnapshot.
OnUpdate
Unsubscribe function.
OnChange
OnColorChange
OnChange.
OnTransparencyChange
PeekColor
PeekTransparency
nil if the picker has no transparency slider.
SetState
SetTransparency
0 (opaque) to 1 (invisible).
SetRotation
SetAnimation
| Animation | Works on |
|---|---|
"none" | Anything. Turns animation off |
"shimmer" | Gradients only. Spins the gradient |
"rainbow" | Anything. Cycles through hues |
"blink" | Pickers with a transparency slider only |
SetSpeed
1 is normal.