rubygoo 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +5 -0
- data/Manifest.txt +2 -0
- data/TODO +1 -4
- data/lib/rubygoo.rb +14 -13
- data/lib/rubygoo/adapters/adapter_factory.rb +12 -9
- data/lib/rubygoo/adapters/gosu_app_adapter.rb +510 -7
- data/lib/rubygoo/adapters/gosu_render_adapter.rb +52 -38
- data/lib/rubygoo/adapters/rubygame_app_adapter.rb +36 -29
- data/lib/rubygoo/adapters/rubygame_render_adapter.rb +39 -37
- data/lib/rubygoo/app.rb +77 -64
- data/lib/rubygoo/button.rb +43 -41
- data/lib/rubygoo/check_box.rb +58 -56
- data/lib/rubygoo/container.rb +106 -96
- data/lib/rubygoo/css_colors.rb +152 -150
- data/lib/rubygoo/dialog.rb +35 -36
- data/lib/rubygoo/goo_color.rb +14 -6
- data/lib/rubygoo/goo_event.rb +10 -8
- data/lib/rubygoo/label.rb +36 -34
- data/lib/rubygoo/mouse_cursor.rb +21 -0
- data/lib/rubygoo/rect.rb +602 -0
- data/lib/rubygoo/text_field.rb +244 -243
- data/lib/rubygoo/widget.rb +122 -114
- data/samples/gosu_app.rb +11 -4
- data/samples/rubygame_app.rb +2 -0
- data/themes/default/config.yml +8 -5
- metadata +4 -2
data/lib/rubygoo/check_box.rb
CHANGED
@@ -1,73 +1,75 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
def added()
|
9
|
-
@checked = false
|
10
|
-
@color = theme_property :color
|
11
|
-
@bg_color = theme_property :bg_color
|
12
|
-
@border_color = theme_property :border_color
|
13
|
-
@focus_color = theme_property :focus_color
|
14
|
-
@checked_color = theme_property :checked_color
|
1
|
+
module Rubygoo
|
2
|
+
class CheckBox < Widget
|
3
|
+
attr_accessor :checked
|
4
|
+
can_fire :checked
|
5
|
+
def initialize(opts={})
|
6
|
+
super opts
|
7
|
+
end
|
15
8
|
|
16
|
-
|
17
|
-
|
9
|
+
def added()
|
10
|
+
@checked = false
|
11
|
+
@color = theme_property :color
|
12
|
+
@bg_color = theme_property :bg_color
|
13
|
+
@border_color = theme_property :border_color
|
14
|
+
@focus_color = theme_property :focus_color
|
15
|
+
@checked_color = theme_property :checked_color
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
end
|
17
|
+
@rect = Rect.new [@x-@x_pad,@y-@y_pad,@w+2*@x_pad,@h+2*@y_pad]
|
18
|
+
end
|
22
19
|
|
23
|
-
|
24
|
-
|
25
|
-
uncheck
|
26
|
-
else
|
27
|
-
check
|
20
|
+
def checked?()
|
21
|
+
@checked
|
28
22
|
end
|
29
|
-
end
|
30
23
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
24
|
+
def toggle()
|
25
|
+
if checked?
|
26
|
+
uncheck
|
27
|
+
else
|
28
|
+
check
|
29
|
+
end
|
30
|
+
end
|
35
31
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
32
|
+
def check()
|
33
|
+
@checked = true
|
34
|
+
fire :checked
|
35
|
+
end
|
40
36
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
37
|
+
def uncheck()
|
38
|
+
@checked = false
|
39
|
+
fire :checked
|
40
|
+
end
|
45
41
|
|
46
|
-
|
47
|
-
|
48
|
-
case event.data[:key]
|
49
|
-
when K_SPACE
|
42
|
+
# called when there is a mouse click
|
43
|
+
def mouse_up(event)
|
50
44
|
toggle
|
51
45
|
end
|
52
|
-
end
|
53
46
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
47
|
+
# called when a key press is sent to us
|
48
|
+
def key_pressed(event)
|
49
|
+
case event.data[:key]
|
50
|
+
when K_SPACE
|
51
|
+
toggle
|
52
|
+
end
|
59
53
|
end
|
60
54
|
|
61
|
-
|
62
|
-
|
63
|
-
|
55
|
+
def draw(screen)
|
56
|
+
if @focussed
|
57
|
+
screen.fill @focus_color, @rect
|
58
|
+
elsif @bg_color
|
59
|
+
screen.fill @bg_color, @rect
|
60
|
+
end
|
61
|
+
|
62
|
+
if @checked
|
63
|
+
screen.fill @checked_color, @rect.inflate(-@x_pad,-@y_pad)
|
64
|
+
end
|
64
65
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
66
|
+
if @border_color
|
67
|
+
x1 = @rect[0]
|
68
|
+
y1 = @rect[1]
|
69
|
+
x2 = @rect[2] + x1
|
70
|
+
y2 = @rect[3] + y1
|
71
|
+
screen.draw_box x1, y1, x2, y2, @border_color
|
72
|
+
end
|
71
73
|
end
|
72
74
|
end
|
73
75
|
end
|
data/lib/rubygoo/container.rb
CHANGED
@@ -1,129 +1,139 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
module Rubygoo
|
2
|
+
class Container < Widget
|
3
|
+
|
4
|
+
attr_accessor :widgets, :bg_color, :rect
|
5
|
+
|
6
|
+
def initialize(opts={})
|
7
|
+
super opts
|
8
|
+
# cannot get this if we don't have an app yet
|
9
|
+
@bg_color = theme_property :bg_color if self.app
|
10
|
+
@queued_widgets = []
|
11
|
+
@widgets = []
|
12
|
+
@modal_widgets = []
|
13
|
+
end
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
# called when we are added to another container
|
16
|
+
def added()
|
17
|
+
add *@queued_widgets
|
18
|
+
@queued_widgets = []
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
def add_modal(widget)
|
22
|
+
@modal_widgets << widget
|
23
|
+
add widget
|
24
|
+
end
|
24
25
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
26
|
+
# Add widget(s) to the container.
|
27
|
+
def add(*widgets)
|
28
|
+
widgets.uniq.each do |w|
|
29
|
+
unless @widgets.include? w
|
30
|
+
if self.app
|
31
|
+
w.container = self
|
32
|
+
w.parent = self
|
33
|
+
w.app = self.app
|
34
|
+
w.app.add_tabbed_widget w
|
35
|
+
w.added
|
36
|
+
@widgets << w
|
37
|
+
else
|
38
|
+
@queued_widgets << w
|
39
|
+
end
|
38
40
|
end
|
39
41
|
end
|
42
|
+
widgets
|
40
43
|
end
|
41
|
-
widgets
|
42
|
-
end
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
45
|
+
# Remove widget(s) to the container.
|
46
|
+
def remove(*widgets)
|
47
|
+
widgets.uniq.each do |w|
|
48
|
+
widget = @widgets.delete(w)
|
49
|
+
queued_widget = @queued_widgets.delete(w)
|
50
|
+
modal_widget = @modal_widgets.delete(w)
|
51
|
+
if widget or queued_widget or modal_widget
|
52
|
+
w.removed
|
53
|
+
end
|
52
54
|
end
|
53
55
|
end
|
54
|
-
end
|
55
56
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
57
|
+
# draw ourself and our children
|
58
|
+
def draw(screen)
|
59
|
+
# any container specific code here (border_colors?)
|
60
|
+
if @bg_color
|
61
|
+
if app == self
|
62
|
+
screen.fill @bg_color
|
63
|
+
else
|
64
|
+
screen.fill @bg_color, @rect
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# draw kiddies
|
69
|
+
@widgets.each do |w|
|
70
|
+
w.draw screen
|
64
71
|
end
|
65
72
|
end
|
66
73
|
|
67
|
-
#
|
68
|
-
|
69
|
-
|
74
|
+
# called when there is a mouse motion
|
75
|
+
def mouse_motion(event)
|
76
|
+
@widgets.each do |w|
|
77
|
+
w.mouse_motion event #if w.contains? [event.data[:x],event.data[:y]]
|
78
|
+
end
|
70
79
|
end
|
71
|
-
end
|
72
80
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
81
|
+
# called when there is a mouse click
|
82
|
+
def mouse_down(event)
|
83
|
+
@widgets.each do |w|
|
84
|
+
w.mouse_down event if w.contains? [event.data[:x],event.data[:y]]
|
85
|
+
end
|
77
86
|
end
|
78
|
-
end
|
79
87
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
88
|
+
# called when there is a mouse release
|
89
|
+
def mouse_up(event)
|
90
|
+
@widgets.each do |w|
|
91
|
+
w.mouse_up event if w.contains? [event.data[:x],event.data[:y]]
|
92
|
+
end
|
84
93
|
end
|
85
|
-
end
|
86
94
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
95
|
+
# pass on the key press to our widgets
|
96
|
+
def key_pressed(event)
|
97
|
+
@widgets.each do |w|
|
98
|
+
w.key_pressed event if w.focussed?
|
99
|
+
end
|
91
100
|
end
|
92
|
-
end
|
93
101
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
102
|
+
# pass on the key release to our widgets
|
103
|
+
def key_released(event)
|
104
|
+
@widgets.each do |w|
|
105
|
+
w.key_released event if w.focussed?
|
106
|
+
end
|
98
107
|
end
|
99
|
-
end
|
100
108
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
109
|
+
# distribute our mouse events to our modals first
|
110
|
+
def modal_mouse_call(meth, event)
|
111
|
+
if @modal_widgets.empty?
|
112
|
+
@widgets.each do |w|
|
113
|
+
w.send meth, event if w.contains? [event.data[:x],event.data[:y]]
|
114
|
+
end
|
115
|
+
else
|
116
|
+
@modal_widgets.last.send meth, event
|
117
|
+
end
|
105
118
|
end
|
106
|
-
end
|
107
119
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
120
|
+
# distribute our keyboard events to our modals first
|
121
|
+
def modal_keyboard_call(meth, event)
|
122
|
+
if @modal_widgets.empty?
|
123
|
+
@widgets.each do |w|
|
124
|
+
w.send meth, event if w.focussed?
|
125
|
+
end
|
126
|
+
else
|
127
|
+
@modal_widgets.last.send meth, event
|
113
128
|
end
|
114
|
-
else
|
115
|
-
@modal_widgets.last.send meth, event
|
116
129
|
end
|
117
|
-
end
|
118
130
|
|
119
|
-
|
120
|
-
|
121
|
-
|
131
|
+
# called each update cycle with the amount of time that has passed. useful
|
132
|
+
# for animations, etc
|
133
|
+
def update(time)
|
122
134
|
@widgets.each do |w|
|
123
|
-
w.
|
135
|
+
w.update time
|
124
136
|
end
|
125
|
-
else
|
126
|
-
@modal_widgets.last.send meth, event
|
127
137
|
end
|
128
138
|
end
|
129
139
|
end
|
data/lib/rubygoo/css_colors.rb
CHANGED
@@ -1,151 +1,153 @@
|
|
1
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
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
2
|
+
module Rubygoo
|
3
|
+
# colors from: http://www.w3schools.com/css/css_colornames.asp
|
4
|
+
CSS_COLORS = {
|
5
|
+
:AliceBlue => [240,248,255,255],
|
6
|
+
:AntiqueWhite => [250,235,215,255],
|
7
|
+
:Aqua => [0,255,255,255],
|
8
|
+
:Aquamarine => [127,255,212,255],
|
9
|
+
:Azure => [240,255,255,255],
|
10
|
+
:Beige => [245,245,220,255],
|
11
|
+
:Bisque => [255,228,196,255],
|
12
|
+
:Black => [0,0,0,255],
|
13
|
+
:BlanchedAlmond => [255,235,205,255],
|
14
|
+
:Blue => [0,0,255,255],
|
15
|
+
:BlueViolet => [138,43,226,255],
|
16
|
+
:Brown => [165,42,42,255],
|
17
|
+
:BurlyWood => [222,184,135,255],
|
18
|
+
:CadetBlue => [95,158,160,255],
|
19
|
+
:Chartreuse => [127,255,0,255],
|
20
|
+
:Chocolate => [210,105,30,255],
|
21
|
+
:Coral => [255,127,80,255],
|
22
|
+
:CornflowerBlue => [100,149,237,255],
|
23
|
+
:Cornsilk => [255,248,220,255],
|
24
|
+
:Crimson => [237,164,61,255],
|
25
|
+
:Cyan => [0,255,255,255],
|
26
|
+
:DarkBlue => [0,0,139,255],
|
27
|
+
:DarkCyan => [0,139,139,255],
|
28
|
+
:DarkGoldenRod => [184,134,11,255],
|
29
|
+
:DarkGray => [169,169,169,255],
|
30
|
+
:DarkGrey => [169,169,169,255],
|
31
|
+
:DarkGreen => [0,100,0,255],
|
32
|
+
:DarkKhaki => [189,183,107,255],
|
33
|
+
:DarkMagenta => [139,0,139,255],
|
34
|
+
:DarkOliveGreen => [85,107,47,255],
|
35
|
+
:Darkorange => [255,140,0,255],
|
36
|
+
:DarkOrchid => [153,50,204,255],
|
37
|
+
:DarkRed => [139,0,0,255],
|
38
|
+
:DarkSalmon => [233,150,122,255],
|
39
|
+
:DarkSeaGreen => [143,188,143,255],
|
40
|
+
:DarkSlateBlue => [72,61,139,255],
|
41
|
+
:DarkSlateGray => [47,79,79,255],
|
42
|
+
:DarkSlateGrey => [47,79,79,255],
|
43
|
+
:DarkTurquoise => [0,206,209,255],
|
44
|
+
:DarkViolet => [148,0,211,255],
|
45
|
+
:DeepPink => [255,20,147,255],
|
46
|
+
:DeepSkyBlue => [0,191,255,255],
|
47
|
+
:DimGray => [105,105,105,255],
|
48
|
+
:DimGrey => [105,105,105,255],
|
49
|
+
:DodgerBlue => [30,144,255,255],
|
50
|
+
:FireBrick => [178,34,34,255],
|
51
|
+
:FloralWhite => [255,250,240,255],
|
52
|
+
:ForestGreen => [34,139,34,255],
|
53
|
+
:Fuchsia => [255,0,255,255],
|
54
|
+
:Gainsboro => [220,220,220,255],
|
55
|
+
:GhostWhite => [248,248,255,255],
|
56
|
+
:Gold => [255,215,0,255],
|
57
|
+
:GoldenRod => [218,165,32,255],
|
58
|
+
:Gray => [128,128,128,255],
|
59
|
+
:Grey => [128,128,128,255],
|
60
|
+
:Green => [0,128,0,255],
|
61
|
+
:GreenYellow => [173,255,47,255],
|
62
|
+
:HoneyDew => [240,255,240,255],
|
63
|
+
:HotPink => [255,105,180,255],
|
64
|
+
:IndianRed => [205,92,92,255],
|
65
|
+
:Indigo => [75,0,130,255],
|
66
|
+
:Ivory => [255,255,240,255],
|
67
|
+
:Khaki => [240,230,140,255],
|
68
|
+
:Lavender => [230,230,250,255],
|
69
|
+
:LavenderBlush => [255,240,245,255],
|
70
|
+
:LawnGreen => [124,252,0,255],
|
71
|
+
:LemonChiffon => [255,250,205,255],
|
72
|
+
:LightBlue => [173,216,230,255],
|
73
|
+
:LightCoral => [240,128,128,255],
|
74
|
+
:LightCyan => [224,255,255,255],
|
75
|
+
:LightGoldenRodYellow => [250,250,210,255],
|
76
|
+
:LightGray => [211,211,211,255],
|
77
|
+
:LightGrey => [211,211,211,255],
|
78
|
+
:LightGreen => [144,238,144,255],
|
79
|
+
:LightPink => [255,182,193,255],
|
80
|
+
:LightSalmon => [255,160,122,255],
|
81
|
+
:LightSeaGreen => [32,178,170,255],
|
82
|
+
:LightSkyBlue => [135,206,250,255],
|
83
|
+
:LightSlateGray => [119,136,153,255],
|
84
|
+
:LightSlateGrey => [119,136,153,255],
|
85
|
+
:LightSteelBlue => [176,196,222,255],
|
86
|
+
:LightYellow => [255,255,224,255],
|
87
|
+
:Lime => [0,255,0,255],
|
88
|
+
:LimeGreen => [50,205,50,255],
|
89
|
+
:Linen => [250,240,230,255],
|
90
|
+
:Magenta => [255,0,255,255],
|
91
|
+
:Maroon => [128,0,0,255],
|
92
|
+
:MediumAquaMarine => [102,205,170,255],
|
93
|
+
:MediumBlue => [0,0,205,255],
|
94
|
+
:MediumOrchid => [186,85,211,255],
|
95
|
+
:MediumPurple => [147,112,219,255],
|
96
|
+
:MediumSeaGreen => [60,179,113,255],
|
97
|
+
:MediumSlateBlue => [123,104,238,255],
|
98
|
+
:MediumSpringGreen => [0,250,154,255],
|
99
|
+
:MediumTurquoise => [72,209,204,255],
|
100
|
+
:MediumVioletRed => [199,21,133,255],
|
101
|
+
:MidnightBlue => [25,25,112,255],
|
102
|
+
:MintCream => [245,255,250,255],
|
103
|
+
:MistyRose => [255,228,225,255],
|
104
|
+
:Moccasin => [255,228,181,255],
|
105
|
+
:NavajoWhite => [255,222,173,255],
|
106
|
+
:Navy => [0,0,128,255],
|
107
|
+
:OldLace => [253,245,230,255],
|
108
|
+
:Olive => [128,128,0,255],
|
109
|
+
:OliveDrab => [107,142,35,255],
|
110
|
+
:Orange => [255,165,0,255],
|
111
|
+
:OrangeRed => [255,69,0,255],
|
112
|
+
:Orchid => [218,112,214,255],
|
113
|
+
:PaleGoldenRod => [238,232,170,255],
|
114
|
+
:PaleGreen => [152,251,152,255],
|
115
|
+
:PaleTurquoise => [175,238,238,255],
|
116
|
+
:PaleVioletRed => [219,112,147,255],
|
117
|
+
:PapayaWhip => [255,239,213,255],
|
118
|
+
:PeachPuff => [255,218,185,255],
|
119
|
+
:Peru => [205,133,63,255],
|
120
|
+
:Pink => [255,192,203,255],
|
121
|
+
:Plum => [221,160,221,255],
|
122
|
+
:PowderBlue => [176,224,230,255],
|
123
|
+
:Purple => [128,0,128,255],
|
124
|
+
:Red => [255,0,0,255],
|
125
|
+
:RosyBrown => [188,143,143],
|
126
|
+
:RoyalBlue => [65,105,225,255],
|
127
|
+
:SaddleBrown => [139,69,19,255],
|
128
|
+
:Salmon => [250,128,114,255],
|
129
|
+
:SandyBrown => [244,164,96,255],
|
130
|
+
:SeaGreen => [46,139,87,255],
|
131
|
+
:SeaShell => [255,245,238,255],
|
132
|
+
:Sienna => [160,82,45,255],
|
133
|
+
:Silver => [192,192,192,255],
|
134
|
+
:SkyBlue => [135,206,235,255],
|
135
|
+
:SlateBlue => [106,90,205,255],
|
136
|
+
:SlateGray => [112,128,144,255],
|
137
|
+
:SlateGrey => [112,128,144,255],
|
138
|
+
:Snow => [255,250,250,255],
|
139
|
+
:SpringGreen => [0,255,127,255],
|
140
|
+
:SteelBlue => [70,130,180,255],
|
141
|
+
:Tan => [210,180,140,255],
|
142
|
+
:Teal => [0,128,128,255],
|
143
|
+
:Thistle => [216,191,216,255],
|
144
|
+
:Tomato => [255,99,71,255],
|
145
|
+
:Turquoise => [64,224,208,255],
|
146
|
+
:Violet => [238,130,238,255],
|
147
|
+
:Wheat => [245,222,179,255],
|
148
|
+
:White => [255,255,255,255],
|
149
|
+
:WhiteSmoke => [245,245,245,255],
|
150
|
+
:Yellow => [255,255,0],
|
151
|
+
:YellowGreen => [154,205,50,255]
|
152
|
+
}
|
153
|
+
end
|