Update
Update Update Update Update Update Update Update Update Update
This commit is contained in:
36
ui/ColorSelect.lua
Normal file
36
ui/ColorSelect.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
---@meta
|
||||
|
||||
---@class ColorSelect : Frame
|
||||
ColorSelect = {
|
||||
--- Gets the currently selected color.
|
||||
--- @return number h The hue value (0-1).
|
||||
--- @return number s The saturation value (0-1).
|
||||
--- @return number v The brightness value (0-1).
|
||||
--- @example
|
||||
--- local h, s, v = myColorSelect:GetColorHSV()
|
||||
GetColorHSV = function(self) end,
|
||||
|
||||
--- Gets the RGB values of the currently selected color.
|
||||
--- @return number r The red value (0-1).
|
||||
--- @return number g The green value (0-1).
|
||||
--- @return number b The blue value (0-1).
|
||||
--- @example
|
||||
--- local r, g, b = myColorSelect:GetColorRGB()
|
||||
GetColorRGB = function(self) end,
|
||||
|
||||
--- Sets the color using HSV values.
|
||||
--- @param h number The hue value (0-1).
|
||||
--- @param s number The saturation value (0-1).
|
||||
--- @param v number The brightness value (0-1).
|
||||
--- @example
|
||||
--- myColorSelect:SetColorHSV(0.5, 1.0, 1.0)
|
||||
SetColorHSV = function(self, h, s, v) end,
|
||||
|
||||
--- Sets the color using RGB values.
|
||||
--- @param r number The red value (0-1).
|
||||
--- @param g number The green value (0-1).
|
||||
--- @param b number The blue value (0-1).
|
||||
--- @example
|
||||
--- myColorSelect:SetColorRGB(1.0, 0.0, 0.0)
|
||||
SetColorRGB = function(self, r, g, b) end,
|
||||
}
|
||||
Reference in New Issue
Block a user