How would I use this? It’s made by @dispeller and I think it would work pretty well for what I need it for.
I read through the script and as a new/basic scripter it confused me lol. Is there a variable that I can use? And, what type of color is it? RGB, HSV? or anything else
ColorSequence.new({ -- color sequence
ColorSequenceKeypoint.new(0,Color3.fromRGB(0,0,0)),--black
ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,255))--white
}
)
-- this would be a gradient from Black to White
The easiest way to use this is by using the provided Gui and checking ColorPickerUi.ColorPickerFrame.ColorShower.BackgroundColor3
You can move/scale the ui however you want, just keep the ancestry the same.
You can also edit the UiGradient’s color sequence to change the gradient.
The script will automatically detect any UiGradients under the ColorPickerArea frame, so don’t worry about names there. There’s a folder of example gradients named “ExampleGradients” if you’re too lazy to edit your own. You can swap the Rainbow gradient for one of those if you want.
If you want to use the module, you’d just feed it a decimal between 0 to 1 and a ColorKeyPoints.
You can get a ColorKeyPoints by getting UiGradient.Color.KeyPoints.
getColor(0.5, UiGradient.Color.KeyPoints)
-- Returns the Color3 (RBG) of the gradient's center