-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsquares.lua
More file actions
65 lines (51 loc) · 1.26 KB
/
Copy pathsquares.lua
File metadata and controls
65 lines (51 loc) · 1.26 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
56
57
58
59
60
61
62
63
64
65
local ui = require('likelihud')
local squares = ui.Rectangle {
w = 300,
h = 300,
color = { 1, 0, 0 },
inside = {
ui.Rectangle {
w = 50,
h = 50,
color = { 0, 1, 0 },
offset = {
x = 10,
y = 10,
width = 100,
height = 100,
}
},
ui.Rectangle {
w = 100,
h = 100,
color = { 0, 0, 1 },
offset = {
x = 30,
y = 30,
width = 200,
height = 200,
},
inside = {
ui.Rectangle {
w = 130,
h = 130,
color = { 0, 1, 1 },
offset = {
x = 20,
y = 20,
width = 150,
height = 150,
},
inside = {
ui.Rectangle {
w = 50,
h = 50,
color = { 1, 1, 0 },
}
}
}
}
},
}
}
return squares