motion-game 1.1.7 → 1.1.7.1

Sign up to get free protection for your applications and to get access to all the features.
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/Draw.html DELETED
@@ -1,813 +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::Draw
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::Draw";
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 (D)</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">Draw</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::Draw
65
-
66
-
67
-
68
- </h1>
69
- <div class="box_info">
70
-
71
- <dl>
72
- <dt>Inherits:</dt>
73
- <dd>
74
- <span class="inheritName"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></li>
80
-
81
- <li class="next">MG::Draw</li>
82
-
83
- </ul>
84
- <a href="#" class="inheritanceTree">show all</a>
85
-
86
- </dd>
87
- </dl>
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <dl>
100
- <dt>Defined in:</dt>
101
- <dd>motion-game</dd>
102
- </dl>
103
-
104
- </div>
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <h2>Instance Attribute Summary</h2>
113
-
114
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
115
- <p class="inherited"><span class='object_link'><a href="Node.html#alpha-instance_method" title="MG::Node#alpha (method)">#alpha</a></span>, <span class='object_link'><a href="Node.html#anchor_point-instance_method" title="MG::Node#anchor_point (method)">#anchor_point</a></span>, <span class='object_link'><a href="Node.html#color-instance_method" title="MG::Node#color (method)">#color</a></span>, <span class='object_link'><a href="Node.html#name-instance_method" title="MG::Node#name (method)">#name</a></span>, <span class='object_link'><a href="Node.html#position-instance_method" title="MG::Node#position (method)">#position</a></span>, <span class='object_link'><a href="Node.html#rotation-instance_method" title="MG::Node#rotation (method)">#rotation</a></span>, <span class='object_link'><a href="Node.html#scale-instance_method" title="MG::Node#scale (method)">#scale</a></span>, <span class='object_link'><a href="Node.html#size-instance_method" title="MG::Node#size (method)">#size</a></span>, <span class='object_link'><a href="Node.html#visible%3F-instance_method" title="MG::Node#visible? (method)">#visible?</a></span>, <span class='object_link'><a href="Node.html#z_index-instance_method" title="MG::Node#z_index (method)">#z_index</a></span></p>
116
-
117
-
118
-
119
- <h2>
120
- Draw Operations
121
- <small><a href="#" class="summary_toggle">collapse</a></small>
122
- </h2>
123
-
124
- <ul class="summary">
125
-
126
- <li class="public ">
127
- <span class="summary_signature">
128
-
129
- <a href="#clear-instance_method" title="#clear (instance method)">#<strong>clear</strong> &#x21d2; Draw </a>
130
-
131
-
132
-
133
- </span>
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
- <span class="summary_desc"><div class='inline'>
144
- <p>Clears drew shapes.</p>
145
- </div></span>
146
-
147
- </li>
148
-
149
-
150
- <li class="public ">
151
- <span class="summary_signature">
152
-
153
- <a href="#dot-instance_method" title="#dot (instance method)">#<strong>dot</strong>(pos, radius, color) &#x21d2; Draw </a>
154
-
155
-
156
-
157
- </span>
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
- <span class="summary_desc"><div class='inline'>
168
- <p>Draws a filled circle at the given position with the given radius and
169
- color.</p>
170
- </div></span>
171
-
172
- </li>
173
-
174
-
175
- <li class="public ">
176
- <span class="summary_signature">
177
-
178
- <a href="#line-instance_method" title="#line (instance method)">#<strong>line</strong>(origin, destination, thickness, color) &#x21d2; Draw </a>
179
-
180
-
181
-
182
- </span>
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
- <span class="summary_desc"><div class='inline'>
193
- <p>Draws a line at the given position with the given color.</p>
194
- </div></span>
195
-
196
- </li>
197
-
198
-
199
- <li class="public ">
200
- <span class="summary_signature">
201
-
202
- <a href="#rect-instance_method" title="#rect (instance method)">#<strong>rect</strong>(origin, destination, color, fill = false) &#x21d2; Draw </a>
203
-
204
-
205
-
206
- </span>
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
- <span class="summary_desc"><div class='inline'>
217
- <p>Draws a rectangle at the given position with the given color.</p>
218
- </div></span>
219
-
220
- </li>
221
-
222
-
223
- <li class="public ">
224
- <span class="summary_signature">
225
-
226
- <a href="#triangle-instance_method" title="#triangle (instance method)">#<strong>triangle</strong>(position1, position2, position3, color) &#x21d2; Draw </a>
227
-
228
-
229
-
230
- </span>
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
- <span class="summary_desc"><div class='inline'>
241
- <p>Draws a triangle at the given positions with the given color.</p>
242
- </div></span>
243
-
244
- </li>
245
-
246
-
247
- </ul>
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
260
- <p class="inherited"><span class='object_link'><a href="Node.html#add-instance_method" title="MG::Node#add (method)">#add</a></span>, <span class='object_link'><a href="Node.html#children-instance_method" title="MG::Node#children (method)">#children</a></span>, <span class='object_link'><a href="Node.html#delete-instance_method" title="MG::Node#delete (method)">#delete</a></span>, <span class='object_link'><a href="Node.html#delete_from_parent-instance_method" title="MG::Node#delete_from_parent (method)">#delete_from_parent</a></span>, <span class='object_link'><a href="Node.html#intersects%3F-instance_method" title="MG::Node#intersects? (method)">#intersects?</a></span>, <span class='object_link'><a href="Node.html#parent-instance_method" title="MG::Node#parent (method)">#parent</a></span>, <span class='object_link'><a href="Node.html#run_action-instance_method" title="MG::Node#run_action (method)">#run_action</a></span>, <span class='object_link'><a href="Node.html#stop_action-instance_method" title="MG::Node#stop_action (method)">#stop_action</a></span>, <span class='object_link'><a href="Node.html#stop_all_actions-instance_method" title="MG::Node#stop_all_actions (method)">#stop_all_actions</a></span></p>
261
-
262
-
263
- <div id="instance_method_details" class="method_details_list">
264
- <h2>Instance Method Details</h2>
265
-
266
-
267
- <div class="method_details first">
268
- <h3 class="signature first" id="clear-instance_method">
269
-
270
- #<strong>clear</strong> &#x21d2; <tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>
271
-
272
-
273
-
274
-
275
-
276
- </h3><div class="docstring">
277
- <div class="discussion">
278
-
279
- <p>Clears drew shapes.</p>
280
-
281
-
282
- </div>
283
- </div>
284
- <div class="tags">
285
-
286
- <p class="tag_title">Returns:</p>
287
- <ul class="return">
288
-
289
- <li>
290
-
291
-
292
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>)</span>
293
-
294
-
295
-
296
- &mdash;
297
- <div class='inline'>
298
- <p>the receiver.</p>
299
- </div>
300
-
301
- </li>
302
-
303
- </ul>
304
-
305
- </div><table class="source_code">
306
- <tr>
307
- <td>
308
- <pre class="lines">
309
-
310
-
311
- 794</pre>
312
- </td>
313
- <td>
314
- <pre class="code"><span class="info file"># File 'motion-game', line 794</span>
315
-
316
- <span class='kw'>def</span> <span class='id identifier rubyid_clear'>clear</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
317
- </td>
318
- </tr>
319
- </table>
320
- </div>
321
-
322
- <div class="method_details ">
323
- <h3 class="signature " id="dot-instance_method">
324
-
325
- #<strong>dot</strong>(pos, radius, color) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>
326
-
327
-
328
-
329
-
330
-
331
- </h3><div class="docstring">
332
- <div class="discussion">
333
-
334
- <p>Draws a filled circle at the given position with the given radius and
335
- color.</p>
336
-
337
-
338
- </div>
339
- </div>
340
- <div class="tags">
341
- <p class="tag_title">Parameters:</p>
342
- <ul class="param">
343
-
344
- <li>
345
-
346
- <span class='name'>pos</span>
347
-
348
-
349
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
350
-
351
-
352
-
353
- &mdash;
354
- <div class='inline'>
355
- <p>the position where to draw.</p>
356
- </div>
357
-
358
- </li>
359
-
360
- <li>
361
-
362
- <span class='name'>radius</span>
363
-
364
-
365
- <span class='type'>(<tt>Float</tt>)</span>
366
-
367
-
368
-
369
- &mdash;
370
- <div class='inline'>
371
- <p>the radius of the circle to draw.</p>
372
- </div>
373
-
374
- </li>
375
-
376
- <li>
377
-
378
- <span class='name'>color</span>
379
-
380
-
381
- <span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
382
-
383
-
384
-
385
- &mdash;
386
- <div class='inline'>
387
- <p>the color to use to fill the circle.</p>
388
- </div>
389
-
390
- </li>
391
-
392
- </ul>
393
-
394
- <p class="tag_title">Returns:</p>
395
- <ul class="return">
396
-
397
- <li>
398
-
399
-
400
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>)</span>
401
-
402
-
403
-
404
- &mdash;
405
- <div class='inline'>
406
- <p>the receiver.</p>
407
- </div>
408
-
409
- </li>
410
-
411
- </ul>
412
-
413
- </div><table class="source_code">
414
- <tr>
415
- <td>
416
- <pre class="lines">
417
-
418
-
419
- 801</pre>
420
- </td>
421
- <td>
422
- <pre class="code"><span class="info file"># File 'motion-game', line 801</span>
423
-
424
- <span class='kw'>def</span> <span class='id identifier rubyid_dot'>dot</span><span class='lparen'>(</span><span class='id identifier rubyid_pos'>pos</span><span class='comma'>,</span> <span class='id identifier rubyid_radius'>radius</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
425
- </td>
426
- </tr>
427
- </table>
428
- </div>
429
-
430
- <div class="method_details ">
431
- <h3 class="signature " id="line-instance_method">
432
-
433
- #<strong>line</strong>(origin, destination, thickness, color) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>
434
-
435
-
436
-
437
-
438
-
439
- </h3><div class="docstring">
440
- <div class="discussion">
441
-
442
- <p>Draws a line at the given position with the given color.</p>
443
-
444
-
445
- </div>
446
- </div>
447
- <div class="tags">
448
- <p class="tag_title">Parameters:</p>
449
- <ul class="param">
450
-
451
- <li>
452
-
453
- <span class='name'>origin</span>
454
-
455
-
456
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
457
-
458
-
459
-
460
- &mdash;
461
- <div class='inline'>
462
- <p>the position where to start drawing (lower-left).</p>
463
- </div>
464
-
465
- </li>
466
-
467
- <li>
468
-
469
- <span class='name'>destination</span>
470
-
471
-
472
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
473
-
474
-
475
-
476
- &mdash;
477
- <div class='inline'>
478
- <p>the position where to end drawing (higher-right).</p>
479
- </div>
480
-
481
- </li>
482
-
483
- <li>
484
-
485
- <span class='name'>thickness</span>
486
-
487
-
488
- <span class='type'>(<tt>Float</tt>)</span>
489
-
490
-
491
-
492
- &mdash;
493
- <div class='inline'>
494
- <p>the line thickness.</p>
495
- </div>
496
-
497
- </li>
498
-
499
- <li>
500
-
501
- <span class='name'>color</span>
502
-
503
-
504
- <span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
505
-
506
-
507
-
508
- &mdash;
509
- <div class='inline'>
510
- <p>the color to use to draw.</p>
511
- </div>
512
-
513
- </li>
514
-
515
- </ul>
516
-
517
- <p class="tag_title">Returns:</p>
518
- <ul class="return">
519
-
520
- <li>
521
-
522
-
523
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>)</span>
524
-
525
-
526
-
527
- &mdash;
528
- <div class='inline'>
529
- <p>the receiver.</p>
530
- </div>
531
-
532
- </li>
533
-
534
- </ul>
535
-
536
- </div><table class="source_code">
537
- <tr>
538
- <td>
539
- <pre class="lines">
540
-
541
-
542
- 817</pre>
543
- </td>
544
- <td>
545
- <pre class="code"><span class="info file"># File 'motion-game', line 817</span>
546
-
547
- <span class='kw'>def</span> <span class='id identifier rubyid_line'>line</span><span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='comma'>,</span> <span class='id identifier rubyid_destination'>destination</span><span class='comma'>,</span> <span class='id identifier rubyid_thickness'>thickness</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
548
- </td>
549
- </tr>
550
- </table>
551
- </div>
552
-
553
- <div class="method_details ">
554
- <h3 class="signature " id="rect-instance_method">
555
-
556
- #<strong>rect</strong>(origin, destination, color, fill = false) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>
557
-
558
-
559
-
560
-
561
-
562
- </h3><div class="docstring">
563
- <div class="discussion">
564
-
565
- <p>Draws a rectangle at the given position with the given color.</p>
566
-
567
-
568
- </div>
569
- </div>
570
- <div class="tags">
571
- <p class="tag_title">Parameters:</p>
572
- <ul class="param">
573
-
574
- <li>
575
-
576
- <span class='name'>origin</span>
577
-
578
-
579
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
580
-
581
-
582
-
583
- &mdash;
584
- <div class='inline'>
585
- <p>the position where to start drawing (lower-left).</p>
586
- </div>
587
-
588
- </li>
589
-
590
- <li>
591
-
592
- <span class='name'>destination</span>
593
-
594
-
595
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
596
-
597
-
598
-
599
- &mdash;
600
- <div class='inline'>
601
- <p>the position where to end drawing (higher-right).</p>
602
- </div>
603
-
604
- </li>
605
-
606
- <li>
607
-
608
- <span class='name'>color</span>
609
-
610
-
611
- <span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
612
-
613
-
614
-
615
- &mdash;
616
- <div class='inline'>
617
- <p>the color to use to draw.</p>
618
- </div>
619
-
620
- </li>
621
-
622
- <li>
623
-
624
- <span class='name'>fill</span>
625
-
626
-
627
- <span class='type'>(<tt>Boolean</tt>)</span>
628
-
629
-
630
- <em class="default">(defaults to: <tt>false</tt>)</em>
631
-
632
-
633
- &mdash;
634
- <div class='inline'>
635
- <p>whether the rectangle should be filled up.</p>
636
- </div>
637
-
638
- </li>
639
-
640
- </ul>
641
-
642
- <p class="tag_title">Returns:</p>
643
- <ul class="return">
644
-
645
- <li>
646
-
647
-
648
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>)</span>
649
-
650
-
651
-
652
- &mdash;
653
- <div class='inline'>
654
- <p>the receiver.</p>
655
- </div>
656
-
657
- </li>
658
-
659
- </ul>
660
-
661
- </div><table class="source_code">
662
- <tr>
663
- <td>
664
- <pre class="lines">
665
-
666
-
667
- 809</pre>
668
- </td>
669
- <td>
670
- <pre class="code"><span class="info file"># File 'motion-game', line 809</span>
671
-
672
- <span class='kw'>def</span> <span class='id identifier rubyid_rect'>rect</span><span class='lparen'>(</span><span class='id identifier rubyid_origin'>origin</span><span class='comma'>,</span> <span class='id identifier rubyid_destination'>destination</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_fill'>fill</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
673
- </td>
674
- </tr>
675
- </table>
676
- </div>
677
-
678
- <div class="method_details ">
679
- <h3 class="signature " id="triangle-instance_method">
680
-
681
- #<strong>triangle</strong>(position1, position2, position3, color) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>
682
-
683
-
684
-
685
-
686
-
687
- </h3><div class="docstring">
688
- <div class="discussion">
689
-
690
- <p>Draws a triangle at the given positions with the given color.</p>
691
-
692
-
693
- </div>
694
- </div>
695
- <div class="tags">
696
- <p class="tag_title">Parameters:</p>
697
- <ul class="param">
698
-
699
- <li>
700
-
701
- <span class='name'>position1</span>
702
-
703
-
704
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
705
-
706
-
707
-
708
- &mdash;
709
- <div class='inline'>
710
- <p>The triangle vertex point.</p>
711
- </div>
712
-
713
- </li>
714
-
715
- <li>
716
-
717
- <span class='name'>position2</span>
718
-
719
-
720
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
721
-
722
-
723
-
724
- &mdash;
725
- <div class='inline'>
726
- <p>The triangle vertex point.</p>
727
- </div>
728
-
729
- </li>
730
-
731
- <li>
732
-
733
- <span class='name'>position3</span>
734
-
735
-
736
- <span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
737
-
738
-
739
-
740
- &mdash;
741
- <div class='inline'>
742
- <p>The triangle vertex point.</p>
743
- </div>
744
-
745
- </li>
746
-
747
- <li>
748
-
749
- <span class='name'>color</span>
750
-
751
-
752
- <span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
753
-
754
-
755
-
756
- &mdash;
757
- <div class='inline'>
758
- <p>the color to use to draw.</p>
759
- </div>
760
-
761
- </li>
762
-
763
- </ul>
764
-
765
- <p class="tag_title">Returns:</p>
766
- <ul class="return">
767
-
768
- <li>
769
-
770
-
771
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Draw (class)">Draw</a></span></tt>)</span>
772
-
773
-
774
-
775
- &mdash;
776
- <div class='inline'>
777
- <p>the receiver.</p>
778
- </div>
779
-
780
- </li>
781
-
782
- </ul>
783
-
784
- </div><table class="source_code">
785
- <tr>
786
- <td>
787
- <pre class="lines">
788
-
789
-
790
- 825</pre>
791
- </td>
792
- <td>
793
- <pre class="code"><span class="info file"># File 'motion-game', line 825</span>
794
-
795
- <span class='kw'>def</span> <span class='id identifier rubyid_triangle'>triangle</span><span class='lparen'>(</span><span class='id identifier rubyid_position1'>position1</span><span class='comma'>,</span> <span class='id identifier rubyid_position2'>position2</span><span class='comma'>,</span> <span class='id identifier rubyid_position3'>position3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
796
- </td>
797
- </tr>
798
- </table>
799
- </div>
800
-
801
- </div>
802
-
803
- </div>
804
-
805
- <div id="footer">
806
- Generated on Sun Dec 11 16:38:30 2016 by
807
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
808
- 0.9.5 (ruby-2.3.3).
809
- </div>
810
-
811
- </div>
812
- </body>
813
- </html>