summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.LayerGradient.lua
blob: fe28a57215a349f3698527fa83a9add089d3a5e8 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88

---@class cc.LayerGradient :cc.LayerColor
local LayerGradient={ }
cc.LayerGradient=LayerGradient




---*  Returns the start color of the gradient.<br>
---* return The start color.
---@return color3b_table
function LayerGradient:getStartColor () end
---*  Get the compressedInterpolation<br>
---* return The interpolation will be compressed if true.
---@return boolean
function LayerGradient:isCompressedInterpolation () end
---*  Returns the start opacity of the gradient.<br>
---* return The start opacity.
---@return unsigned_char
function LayerGradient:getStartOpacity () end
---*  Sets the directional vector that will be used for the gradient.<br>
---* The default value is vertical direction (0,-1). <br>
---* param alongVector The direction of gradient.
---@param alongVector vec2_table
---@return self
function LayerGradient:setVector (alongVector) end
---*  Returns the start opacity of the gradient.<br>
---* param startOpacity The start opacity, from 0 to 255.
---@param startOpacity unsigned_char
---@return self
function LayerGradient:setStartOpacity (startOpacity) end
---*  Whether or not the interpolation will be compressed in order to display all the colors of the gradient both in canonical and non canonical vectors.<br>
---* Default: true.<br>
---* param compressedInterpolation The interpolation will be compressed if true.
---@param compressedInterpolation boolean
---@return self
function LayerGradient:setCompressedInterpolation (compressedInterpolation) end
---*  Returns the end opacity of the gradient.<br>
---* param endOpacity The end opacity, from 0 to 255.
---@param endOpacity unsigned_char
---@return self
function LayerGradient:setEndOpacity (endOpacity) end
---*  Returns the directional vector used for the gradient.<br>
---* return The direction of gradient.
---@return vec2_table
function LayerGradient:getVector () end
---*  Sets the end color of the gradient.<br>
---* param endColor The end color.
---@param endColor color3b_table
---@return self
function LayerGradient:setEndColor (endColor) end
---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table,vec2_table:vec2_table):self
---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table):self
---@param start color4b_table
---@param _end color4b_table
---@param v vec2_table
---@return boolean
function LayerGradient:initWithColor (start,_end,v) end
---*  Returns the end color of the gradient.<br>
---* return The end color.
---@return color3b_table
function LayerGradient:getEndColor () end
---*  Returns the end opacity of the gradient.<br>
---* return The end opacity.
---@return unsigned_char
function LayerGradient:getEndOpacity () end
---*  Sets the start color of the gradient.<br>
---* param startColor The start color.
---@param startColor color3b_table
---@return self
function LayerGradient:setStartColor (startColor) end
---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table):self
---@overload fun():self
---@overload fun(color4b_table:color4b_table,color4b_table:color4b_table,vec2_table:vec2_table):self
---@param start color4b_table
---@param _end color4b_table
---@param v vec2_table
---@return self
function LayerGradient:create (start,_end,v) end
---* 
---@return boolean
function LayerGradient:init () end
---* 
---@return string
function LayerGradient:getDescription () end
---* 
---@return self
function LayerGradient:LayerGradient () end