-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathac_primitive_hsv.d.lua
47 lines (38 loc) · 1.13 KB
/
ac_primitive_hsv.d.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---Creates new instance. It’s usually faster to create a new item with `hsv(h, s, v)`.
---@param h number?
---@param s number?
---@param v number?
---@return hsv
function hsv.new(h, s, v) end
---Checks if value is hsv or not.
---@param p any
---@return boolean
function hsv.ishsv(p) end
---Temporary HSV color. For most cases though, it might be better to define those locally and use those. Less chance of collision.
---@return hsv
function hsv.tmp() end
---HSV color (hue, saturation, value). Equality operator is overloaded.
---@class hsv
---@field h number
---@field s number
---@field v number
---@constructor fun(h: number?, s: number?, v: number?): hsv
---Makes a copy of a vector.
---@return hsv
function hsv:clone() end
---Unpacks hsv into three numbers.
---@return rgb, number
function hsv:unpack() end
---Turns hsv into a table with three numbers.
---@return number[]
function hsv:table() end
---Returns reference to hsv class.
function hsv:type() end
---@param h number
---@param s number
---@param v number
---@return hsv @Returns itself.
function hsv:set(h, s, v) end
---Returns RGB color.
---@return rgb
function hsv:rgb() end