motion-game 1.1.7 → 1.1.7.1

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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/build/android/motion-cocos.jar +0 -0
  4. metadata +2 -66
  5. data/doc/MG.html +0 -131
  6. data/doc/MG/Action.html +0 -402
  7. data/doc/MG/Animate.html +0 -281
  8. data/doc/MG/Application.html +0 -335
  9. data/doc/MG/Audio.html +0 -1268
  10. data/doc/MG/Blink.html +0 -257
  11. data/doc/MG/Button.html +0 -725
  12. data/doc/MG/Color.html +0 -535
  13. data/doc/MG/DelayTime.html +0 -239
  14. data/doc/MG/Director.html +0 -1301
  15. data/doc/MG/Draw.html +0 -813
  16. data/doc/MG/Events.html +0 -129
  17. data/doc/MG/Events/Acceleration.html +0 -505
  18. data/doc/MG/Events/Touch.html +0 -235
  19. data/doc/MG/FadeIn.html +0 -240
  20. data/doc/MG/FadeOut.html +0 -240
  21. data/doc/MG/FadeTo.html +0 -256
  22. data/doc/MG/File.html +0 -219
  23. data/doc/MG/Follow.html +0 -241
  24. data/doc/MG/JumpBy.html +0 -292
  25. data/doc/MG/JumpTo.html +0 -287
  26. data/doc/MG/Layout.html +0 -516
  27. data/doc/MG/List.html +0 -1053
  28. data/doc/MG/Menu.html +0 -458
  29. data/doc/MG/MoveBy.html +0 -259
  30. data/doc/MG/MoveTo.html +0 -257
  31. data/doc/MG/Node.html +0 -2013
  32. data/doc/MG/Parallax.html +0 -297
  33. data/doc/MG/Particle.html +0 -1224
  34. data/doc/MG/Point.html +0 -543
  35. data/doc/MG/Repeat.html +0 -257
  36. data/doc/MG/RepeatForever.html +0 -239
  37. data/doc/MG/RotateBy.html +0 -259
  38. data/doc/MG/RotateTo.html +0 -257
  39. data/doc/MG/ScaleBy.html +0 -255
  40. data/doc/MG/ScaleTo.html +0 -255
  41. data/doc/MG/Scene.html +0 -1544
  42. data/doc/MG/Scroll.html +0 -533
  43. data/doc/MG/Sequence.html +0 -241
  44. data/doc/MG/Size.html +0 -741
  45. data/doc/MG/SkewBy.html +0 -273
  46. data/doc/MG/SkewTo.html +0 -273
  47. data/doc/MG/Slider.html +0 -338
  48. data/doc/MG/Spawn.html +0 -239
  49. data/doc/MG/Speed.html +0 -259
  50. data/doc/MG/Sprite.html +0 -2591
  51. data/doc/MG/Text.html +0 -921
  52. data/doc/MG/TintBy.html +0 -272
  53. data/doc/MG/TintTo.html +0 -274
  54. data/doc/MG/Web.html +0 -831
  55. data/doc/MG/Widget.html +0 -552
  56. data/doc/_index.html +0 -574
  57. data/doc/class_list.html +0 -51
  58. data/doc/css/common.css +0 -1
  59. data/doc/css/full_list.css +0 -58
  60. data/doc/css/style.css +0 -481
  61. data/doc/file.README.html +0 -192
  62. data/doc/file_list.html +0 -56
  63. data/doc/frames.html +0 -17
  64. data/doc/index.html +0 -192
  65. data/doc/js/app.js +0 -243
  66. data/doc/js/full_list.js +0 -216
  67. data/doc/js/jquery.js +0 -4
  68. data/doc/method_list.html +0 -1635
  69. data/doc/top-level-namespace.html +0 -112
data/doc/MG/Color.html DELETED
@@ -1,535 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: MG::Color
8
-
9
- &mdash; Documentation by YARD 0.9.5
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "MG::Color";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (C)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
41
- &raquo;
42
- <span class="title">Color</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <iframe id="search_frame" src="../class_list.html"></iframe>
63
-
64
- <div id="content"><h1>Class: MG::Color
65
-
66
-
67
-
68
- </h1>
69
- <div class="box_info">
70
-
71
- <dl>
72
- <dt>Inherits:</dt>
73
- <dd>
74
- <span class="inheritName">Object</span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next">MG::Color</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>motion-game</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>A color represents the color, and sometimes opacity (alpha) of an object.
108
- When calling a method that expects a <code>Color</code> object, a 3-element
109
- <code>Array</code> (red-green-blue) or 4-element <code>Array</code>
110
- (red-green-blue-alpha) can be passed instead, as a convenience shortcut.
111
- For example,</p>
112
-
113
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='float'>0.2</span><span class='comma'>,</span> <span class='float'>0.3</span><span class='comma'>,</span> <span class='float'>0.4</span><span class='rbracket'>]</span>
114
- </code></pre>
115
-
116
- <p>is the same as</p>
117
-
118
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='const'>MG</span><span class='op'>::</span><span class='const'>Color</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
119
- <span class='id identifier rubyid_color'>color</span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span> <span class='op'>=</span> <span class='float'>0.2</span>
120
- <span class='id identifier rubyid_color'>color</span><span class='period'>.</span><span class='id identifier rubyid_green'>green</span> <span class='op'>=</span> <span class='float'>0.3</span>
121
- <span class='id identifier rubyid_color'>color</span><span class='period'>.</span><span class='id identifier rubyid_blue'>blue</span> <span class='op'>=</span> <span class='float'>0.4</span>
122
- <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='id identifier rubyid_color'>color</span>
123
- </code></pre>
124
-
125
- <p>Alternatively, a <code>Symbol</code> corresponding to a basic color name
126
- can be provided. For example,</p>
127
-
128
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='symbol'>:red</span>
129
- </code></pre>
130
-
131
- <p>is the same as</p>
132
-
133
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='const'>MG</span><span class='op'>::</span><span class='const'>Color</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
134
- <span class='id identifier rubyid_color'>color</span><span class='period'>.</span><span class='id identifier rubyid_red'>red</span> <span class='op'>=</span> <span class='float'>1.0</span>
135
- <span class='id identifier rubyid_color'>color</span><span class='period'>.</span><span class='id identifier rubyid_green'>green</span> <span class='op'>=</span> <span class='id identifier rubyid_color'>color</span><span class='period'>.</span><span class='id identifier rubyid_blue'>blue</span> <span class='op'>=</span> <span class='int'>0</span>
136
- <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_color'>color</span> <span class='op'>=</span> <span class='id identifier rubyid_color'>color</span>
137
- </code></pre>
138
-
139
- <p>Currently, the following symbols are supported: <code>:white</code>,
140
- <code>:black</code>, <code>:red</code>, <code>:green</code> and
141
- <code>:blue</code>. The <code>MG::Color.new</code> constructor will return
142
- the black color.</p>
143
-
144
-
145
- </div>
146
- </div>
147
- <div class="tags">
148
-
149
-
150
- </div>
151
-
152
-
153
-
154
- <h2>Properties <small><a href="#" class="summary_toggle">collapse</a></small></h2>
155
- <ul class="summary">
156
-
157
- <li class="public ">
158
- <span class="summary_signature">
159
-
160
- <a href="#alpha-instance_method" title="#alpha (instance method)">#<strong>alpha</strong> &#x21d2; Float </a>
161
-
162
-
163
-
164
- </span>
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
- <span class="summary_desc"><div class='inline'>
178
- <p>The alpha portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
179
- </div></span>
180
-
181
- </li>
182
-
183
-
184
- <li class="public ">
185
- <span class="summary_signature">
186
-
187
- <a href="#blue-instance_method" title="#blue (instance method)">#<strong>blue</strong> &#x21d2; Float </a>
188
-
189
-
190
-
191
- </span>
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- <span class="summary_desc"><div class='inline'>
205
- <p>The blue portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
206
- </div></span>
207
-
208
- </li>
209
-
210
-
211
- <li class="public ">
212
- <span class="summary_signature">
213
-
214
- <a href="#green-instance_method" title="#green (instance method)">#<strong>green</strong> &#x21d2; Float </a>
215
-
216
-
217
-
218
- </span>
219
-
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
- <span class="summary_desc"><div class='inline'>
232
- <p>The green portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
233
- </div></span>
234
-
235
- </li>
236
-
237
-
238
- <li class="public ">
239
- <span class="summary_signature">
240
-
241
- <a href="#red-instance_method" title="#red (instance method)">#<strong>red</strong> &#x21d2; Float </a>
242
-
243
-
244
-
245
- </span>
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
- <span class="summary_desc"><div class='inline'>
259
- <p>The red portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
260
- </div></span>
261
-
262
- </li>
263
-
264
-
265
- </ul>
266
-
267
-
268
-
269
-
270
-
271
- <div id="instance_attr_details" class="attr_details">
272
- <h2>Instance Attribute Details</h2>
273
-
274
-
275
- <span id="alpha=-instance_method"></span>
276
- <div class="method_details first">
277
- <h3 class="signature first" id="alpha-instance_method">
278
-
279
- #<strong>alpha</strong> &#x21d2; <tt>Float</tt>
280
-
281
-
282
-
283
-
284
-
285
- </h3><div class="docstring">
286
- <div class="discussion">
287
-
288
- <p>Returns the alpha portion of the color, from <code>0.0</code> to
289
- <code>1.0</code>.</p>
290
-
291
-
292
- </div>
293
- </div>
294
- <div class="tags">
295
-
296
- <p class="tag_title">Returns:</p>
297
- <ul class="return">
298
-
299
- <li>
300
-
301
-
302
- <span class='type'>(<tt>Float</tt>)</span>
303
-
304
-
305
-
306
- &mdash;
307
- <div class='inline'>
308
- <p>the alpha portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
309
- </div>
310
-
311
- </li>
312
-
313
- </ul>
314
-
315
- </div><table class="source_code">
316
- <tr>
317
- <td>
318
- <pre class="lines">
319
-
320
-
321
- 1144
322
- 1145
323
- 1146</pre>
324
- </td>
325
- <td>
326
- <pre class="code"><span class="info file"># File 'motion-game', line 1144</span>
327
-
328
- <span class='kw'>def</span> <span class='id identifier rubyid_alpha'>alpha</span>
329
- <span class='ivar'>@alpha</span>
330
- <span class='kw'>end</span></pre>
331
- </td>
332
- </tr>
333
- </table>
334
- </div>
335
-
336
-
337
- <span id="blue=-instance_method"></span>
338
- <div class="method_details ">
339
- <h3 class="signature " id="blue-instance_method">
340
-
341
- #<strong>blue</strong> &#x21d2; <tt>Float</tt>
342
-
343
-
344
-
345
-
346
-
347
- </h3><div class="docstring">
348
- <div class="discussion">
349
-
350
- <p>Returns the blue portion of the color, from <code>0.0</code> to
351
- <code>1.0</code>.</p>
352
-
353
-
354
- </div>
355
- </div>
356
- <div class="tags">
357
-
358
- <p class="tag_title">Returns:</p>
359
- <ul class="return">
360
-
361
- <li>
362
-
363
-
364
- <span class='type'>(<tt>Float</tt>)</span>
365
-
366
-
367
-
368
- &mdash;
369
- <div class='inline'>
370
- <p>the blue portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
371
- </div>
372
-
373
- </li>
374
-
375
- </ul>
376
-
377
- </div><table class="source_code">
378
- <tr>
379
- <td>
380
- <pre class="lines">
381
-
382
-
383
- 1141
384
- 1142
385
- 1143</pre>
386
- </td>
387
- <td>
388
- <pre class="code"><span class="info file"># File 'motion-game', line 1141</span>
389
-
390
- <span class='kw'>def</span> <span class='id identifier rubyid_blue'>blue</span>
391
- <span class='ivar'>@blue</span>
392
- <span class='kw'>end</span></pre>
393
- </td>
394
- </tr>
395
- </table>
396
- </div>
397
-
398
-
399
- <span id="green=-instance_method"></span>
400
- <div class="method_details ">
401
- <h3 class="signature " id="green-instance_method">
402
-
403
- #<strong>green</strong> &#x21d2; <tt>Float</tt>
404
-
405
-
406
-
407
-
408
-
409
- </h3><div class="docstring">
410
- <div class="discussion">
411
-
412
- <p>Returns the green portion of the color, from <code>0.0</code> to
413
- <code>1.0</code>.</p>
414
-
415
-
416
- </div>
417
- </div>
418
- <div class="tags">
419
-
420
- <p class="tag_title">Returns:</p>
421
- <ul class="return">
422
-
423
- <li>
424
-
425
-
426
- <span class='type'>(<tt>Float</tt>)</span>
427
-
428
-
429
-
430
- &mdash;
431
- <div class='inline'>
432
- <p>the green portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
433
- </div>
434
-
435
- </li>
436
-
437
- </ul>
438
-
439
- </div><table class="source_code">
440
- <tr>
441
- <td>
442
- <pre class="lines">
443
-
444
-
445
- 1138
446
- 1139
447
- 1140</pre>
448
- </td>
449
- <td>
450
- <pre class="code"><span class="info file"># File 'motion-game', line 1138</span>
451
-
452
- <span class='kw'>def</span> <span class='id identifier rubyid_green'>green</span>
453
- <span class='ivar'>@green</span>
454
- <span class='kw'>end</span></pre>
455
- </td>
456
- </tr>
457
- </table>
458
- </div>
459
-
460
-
461
- <span id="red=-instance_method"></span>
462
- <div class="method_details ">
463
- <h3 class="signature " id="red-instance_method">
464
-
465
- #<strong>red</strong> &#x21d2; <tt>Float</tt>
466
-
467
-
468
-
469
-
470
-
471
- </h3><div class="docstring">
472
- <div class="discussion">
473
-
474
- <p>Returns the red portion of the color, from <code>0.0</code> to
475
- <code>1.0</code>.</p>
476
-
477
-
478
- </div>
479
- </div>
480
- <div class="tags">
481
-
482
- <p class="tag_title">Returns:</p>
483
- <ul class="return">
484
-
485
- <li>
486
-
487
-
488
- <span class='type'>(<tt>Float</tt>)</span>
489
-
490
-
491
-
492
- &mdash;
493
- <div class='inline'>
494
- <p>the red portion of the color, from <code>0.0</code> to <code>1.0</code>.</p>
495
- </div>
496
-
497
- </li>
498
-
499
- </ul>
500
-
501
- </div><table class="source_code">
502
- <tr>
503
- <td>
504
- <pre class="lines">
505
-
506
-
507
- 1135
508
- 1136
509
- 1137</pre>
510
- </td>
511
- <td>
512
- <pre class="code"><span class="info file"># File 'motion-game', line 1135</span>
513
-
514
- <span class='kw'>def</span> <span class='id identifier rubyid_red'>red</span>
515
- <span class='ivar'>@red</span>
516
- <span class='kw'>end</span></pre>
517
- </td>
518
- </tr>
519
- </table>
520
- </div>
521
-
522
- </div>
523
-
524
-
525
- </div>
526
-
527
- <div id="footer">
528
- Generated on Sun Dec 11 16:38:30 2016 by
529
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
530
- 0.9.5 (ruby-2.3.3).
531
- </div>
532
-
533
- </div>
534
- </body>
535
- </html>