Initialization:
ColorPicker.new(color, alpha, width, height, [hueCellSize, previewColorCellSize, margins, cellSpacing])
- color (number) - background color of container
- alpha (number) - background alpha of container
- width (number) - width of color picker gradient
- height (number) - height of color picker gradient
- hueCellSize (number, optional, default = 20) - height of hue slider cell
- previewColorCellSize (number, optional, default = 32) - height of selected color cell
- margins (number, optional, default = 0) - inner margin
- cellSpacing (number, optional, default = 10) - distance between cells
Getting selected color value:
local colorPicker = ColorPicker.new(0, 0.1, 128, 128, 15)
print(colorPicker:getSelectedColor())
Resize container:
local colorPicker = ColorPicker.new(0, 0.1, 128, 128, 15)
colorPicker:setDimension(150, 330)