-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvectorlayer.lua
More file actions
55 lines (40 loc) · 2.16 KB
/
Copy pathvectorlayer.lua
File metadata and controls
55 lines (40 loc) · 2.16 KB
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
--- Vector layer related variables and functions.
...
--- The depth of the art layer. By default 1.
depth = 1
--- The layerNum of the art layer (equivalent to the ">" icon in Level Editor). By default 1.
--- Greater layerNum layers are drawn above lesser layerNum layers, regardless of layer depth. layerNums of 2 or greater draw above blocks. 3 or greater draws above players, hats, projectiles, and other visual effects.
layerNum = 1
--- The alpha of the art layer, represented by a number in the range of 0 - 1. An alpha of 0 means the layer is completely transparent; 1 means fully visible. By default 1.
alpha = 1
--- The blend mode of the art layer. Use @{utils.BlendMode|BlendMode} enum values. By default `BlendMode.NORMAL`.
--- Not all blend modes are guaranteed to have any effect when used by art layers
--- @see utils.BlendMode
blendMode = "normal"
--- The number of children. Read-only.
numChildren = 0
--- Whether or not the art layer was destroyed. Calling `destroy` sets this to true. Read-only.
destroyed = false
--- A number value that is multiplied with the red color channel when drawn. By default 1.
redMultiplier = 1
--- A number value that is multiplied with the green color channel when drawn. By default 1.
greenMultiplier = 1
--- A number value that is multiplied with the blue color channel when drawn. By default 1.
blueMultiplier = 1
--- Sets red, green, and blue multipliers based on a hexadecimal RGB value (e.g. 0xFF0000). Write-only.
colorMultiplier = 0xFFFFFF
--- Adds a display object to the layer's child list. This allows it to appear on screen.
--- @tparam sprite/stamp/textfield child The display object to be parented.
--- @tparam int index The index position to add the child into. By default the end of the list.
function addChild(child, index)
end
--- Removes a display object from the layer's child list.
--- @tparam sprite/stamp/textfield child The child display object to be removed.
function removeChild(child)
end
--- Destroys the art layer, removing it from the level. Once destroyed, no operations on the layer will function.
function destroy()
end
--- Clears the art layer, emptying its contents without destroying the layer.
function clear()
end