-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay_Canvas.js.html
725 lines (652 loc) · 27 KB
/
display_Canvas.js.html
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: display/Canvas.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: display/Canvas.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>//------------------------------------------------------------------------------
// Constructor scope
//------------------------------------------------------------------------------
/**
* Creates a new (Rune) Canvas.
*
* @constructor
*
* @param {number} [width] The width of the object, specified in pixels.
* @param {number} [height] The height of the object, specified in pixels.
*
* @class
* @classdesc
*
* The Canvas class is a pixel buffer for 32-bit raster graphics and contains
* methods for manipulating the pixels included in the buffer. The class is
* used to represent all display objects and their current graphic state, ie.
* all display objects have their own pixel buffer (Canvas).
*/
rune.display.Canvas = function(width, height) {
//--------------------------------------------------------------------------
// Protected properties
//--------------------------------------------------------------------------
/**
* The HTMLCanvasElement that represents the pixel buffer.
*
* @type {Element}
* @protected
* @ignore
*/
this.m_canvas = null;
/**
* The CanvasRenderingContext2D used to draw the pixel buffer.
*
* @type {Object}
* @protected
* @ignore
*/
this.m_context = null;
/**
* The height of the pixel buffer.
*
* @type {number}
* @protected
* @ignore
*/
this.m_height = height || 16;
/**
* The width of the pixel buffer.
*
* @type {number}
* @protected
* @ignore
*/
this.m_width = width || 16;
//--------------------------------------------------------------------------
// Constructor call
//--------------------------------------------------------------------------
/**
* Invokes secondary class constructor.
*/
this.m_construct();
};
//------------------------------------------------------------------------------
// Public prototype getter and setter methods
//------------------------------------------------------------------------------
/**
* The HTMLCanvasElement used to draw the pixel buffer.
*
* @member {Object} context
* @memberof rune.display.Canvas
* @instance
* @readonly
*/
Object.defineProperty(rune.display.Canvas.prototype, "context", {
/**
* @this rune.display.Canvas
* @ignore
*/
get : function() {
return this.m_context;
}
});
/**
* The HTMLCanvasElement that represents the pixel buffer.
*
* @member {Element} element
* @memberof rune.display.Canvas
* @instance
* @readonly
*/
Object.defineProperty(rune.display.Canvas.prototype, "element", {
/**
* @this rune.display.Canvas
* @ignore
*/
get : function() {
return this.m_canvas;
}
});
/**
* The height of the pixel buffer.
*
* @member {number} height
* @memberof rune.display.Canvas
* @instance
*/
Object.defineProperty(rune.display.Canvas.prototype, "height", {
/**
* @this rune.display.Canvas
* @ignore
*/
get : function() {
return this.m_canvas.height;
},
/**
* @this rune.display.Canvas
* @ignore
*/
set : function(value) {
this.m_canvas.height = value;
}
});
/**
* Controls whether or not the canvas is smoothed when scaled. If true, the
* canvas is smoothed when scaled. If false, the canvas is not smoothed when
* scaled.
*
* @member {boolean} smoothing
* @memberof rune.display.Canvas
* @instance
* @default false
*/
Object.defineProperty(rune.display.Canvas.prototype, "smoothing", {
/**
* @this rune.display.Canvas
* @ignore
*/
get : function() {
return (this.m_canvas.style.imageRendering == "pixelated") ? false : true;
},
/**
* @this rune.display.Canvas
* @ignore
*/
set : function(value) {
if (value == true) {
this.m_canvas.style.imageRendering = "auto";
this.m_context.imageSmoothingEnabled = true;
} else {
this.m_canvas.style.imageRendering = "pixelated";
this.m_context.imageSmoothingEnabled = false;
}
}
});
/**
* The width of the pixel buffer.
*
* @member {number} width
* @memberof rune.display.Canvas
* @instance
*/
Object.defineProperty(rune.display.Canvas.prototype, "width", {
/**
* @this rune.display.Canvas
* @ignore
*/
get : function() {
return this.m_canvas.width;
},
/**
* @this rune.display.Canvas
* @ignore
*/
set : function(value) {
this.m_canvas.width = value;
}
});
//------------------------------------------------------------------------------
// Public prototype methods (API)
//------------------------------------------------------------------------------
/**
* Appends the HTMLCanvasElement to the specified DOMElement.
*
* @param {HTMLElement} element DOMElement to append to.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.attach = function(element) {
if (this.m_canvas != null) {
if (element instanceof HTMLElement) {
element.appendChild(this.m_canvas);
}
}
};
/**
* Clears the pixel buffer, ie. the value of each pixel is set to 0x00000000.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.clear = function() {
this.m_context.clearRect(
0,
0,
this.m_canvas.width,
this.m_canvas.height
);
};
/**
* Removes the HTMLCanvasElement from the current DOMElement, ie. his parent.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.detach = function() {
if (this.m_canvas != null) {
if (this.m_canvas.parentNode != null) {
this.m_canvas.parentNode.removeChild(this.m_canvas);
}
}
};
/**
* Frees memory that is used to store the pixel buffer object.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.dispose = function() {
this.m_disposeCanvas();
this.m_disposeContext();
};
/**
* creates a circular arc centered at (x, y) with a radius of r. The path
* starts at sa, ends at ea, and travels in the direction given
* by counterclockwise (defaulting to clockwise).
*
* @param {number} x The horizontal coordinate of the arc's center.
* @param {number} y The vertical coordinate of the arc's center.
* @param {number} r The arc's radius. Must be positive.
* @param {number} sa The angle at which the arc starts in radians, measured from the positive x-axis.
* @param {number} ea The angle at which the arc ends in radians, measured from the positive x-axis.
* @param {number} c The color of the line.
* @param {number} s The thickness (size) of the line.
* @param {number} [a] An optional boolean value. If true, draws the arc counter-clockwise between the start and end angles. The default is false (clockwise).
*
* @return {undefined}
*/
rune.display.Canvas.prototype.drawArc = function(x, y, r, sa, ea, c, s, a) {
this.m_context.save();
this.m_context.lineWidth = s;
this.m_context.strokeStyle = c;
this.m_context.beginPath();
this.m_context.arc(x, y, r, sa, ea, a);
this.m_context.stroke();
this.m_context.restore();
};
/**
* Fills a rectangular area of pixels with a specified ARGB color.
*
* @param {string} c Fill color.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.drawFill = function(c) {
this.m_context.fillStyle = c;
this.m_context.fillRect(
0,
0,
this.m_canvas.width,
this.m_canvas.height
);
};
/**
* Draws a 32-bit image to the current pixel buffer.
*
* @param {HTMLImageElement} img An element to draw into the context. The specification permits any canvas image source (CanvasImageSource), specifically, a CSSImageValue, an HTMLImageElement, an SVGImageElement, an HTMLVideoElement, an HTMLCanvasElement, an ImageBitmap, or an OffscreenCanvas.
* @param {number} ox The x-axis coordinate in the destination canvas at which to place the top-left corner of the source image.
* @param {number} oy The y-axis coordinate in the destination canvas at which to place the top-left corner of the source image.
* @param {number} ow The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn.
* @param {number} oh The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.
* @param {number} [cx] The x-axis coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.
* @param {number} [cy] The y-axis coordinate of the top left corner of the sub-rectangle of the source image to draw into the destination context.
* @param {number} [cw] The width of the sub-rectangle of the source image to draw into the destination context. If not specified, the entire rectangle from the coordinates specified by ox and oy to the bottom-right corner of the image is used.
* @param {number} [ch] The height of the sub-rectangle of the source image to draw into the destination context.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.drawImage = function(img, ox, oy, ow, oh, cx, cy, cw, ch) {
this.m_context.save();
this.m_context.drawImage(
img,
cx || 0,
cy || 0,
cw || ow,
ch || oh,
ox,
oy,
ow,
oh
);
this.m_context.restore();
};
/**
* Draws a picture according to a repeating (tile) pattern.
*
* @param {HTMLImageElement} img An element to draw into the context.
* @param {number} x The x-axis coordinate in the destination canvas at which to place the top-left corner of the source image.
* @param {number} y The y-axis coordinate in the destination canvas at which to place the top-left corner of the source image.
* @param {number} w The width to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in width when drawn.
* @param {number} h The height to draw the image in the destination canvas. This allows scaling of the drawn image. If not specified, the image is not scaled in height when drawn.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.drawImageFill = function(img, x, y, w, h) {
this.m_context.save();
this.m_context.fillStyle = this.m_context.createPattern(img, "repeat");
this.m_context.translate(-x, -y);
this.m_context.fillRect(x, y, w, h);
this.m_context.restore();
};
/**
* Draws a straight line between two points.
*
* @param {number} x1 the x-coordinate of the first point.
* @param {number} y1 the y-coordinate of the first point.
* @param {number} x2 the x-coordinate of the second point.
* @param {number} y2 the y-coordinate of the second point.
* @param {string} c The color of the line.
* @param {number} s The thickness (size) of the line.
* @param {number} a The transparency of the line.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.drawLine = function(x1, y1, x2, y2, c, s, a) {
this.m_context.save();
this.m_context.globalAlpha = a;
this.m_context.beginPath();
this.m_context.translate(0.5, 0.5);
this.m_context.strokeStyle = c;
this.m_context.lineWidth = s;
this.m_context.moveTo(x1, y1);
this.m_context.lineTo(x2, y2);
this.m_context.stroke();
this.m_context.restore();
};
/**
* Draws a rectangle.
*
* @param {number} x The x-position of the rectangle.
* @param {number} y The y-position of the rectangle.
* @param {number} w The width of the rectangle.
* @param {number} h The height of the rectangle.
* @param {string} c The color of the rectangle.
* @param {number} s The thickness (size) of the lines of the rectangle.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.drawRect = function(x, y, w, h, c, s) {
this.m_context.save();
this.m_context.translate(0.5, 0.5);
this.m_context.strokeStyle = c;
this.m_context.lineWidth = s;
this.m_context.strokeRect(
x,
y,
w,
h
);
this.m_context.restore();
};
/**
* Draws a filled rectangle.
*
* @param {number} x The x-position of the rectangle.
* @param {number} y The y-position of the rectangle.
* @param {number} w The width of the rectangle.
* @param {number} h The height of the rectangle.
* @param {string} c The color of the rectangle.
* @param {number} a Transparency of the color.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.drawRectFill = function(x, y, w, h, c, a) {
this.m_context.save();
this.m_context.globalAlpha = a;
this.m_context.fillStyle = c;
this.m_context.fillRect(
x,
y,
w,
h
);
this.m_context.restore();
};
/**
* Determines whether the object specified in the rect parameter intersects
* with this canvas object.
*
* @param {rune.geom.Rectangle} rect The Rectangle object to compare against.
*
* @return {boolean} A value of true if the specified object intersects with this Rectangle object; otherwise false.
*/
rune.display.Canvas.prototype.intersects = function(rect) {
return rune.geom.Rectangle.intersects(
0,
0,
this.m_canvas.width,
this.m_canvas.height,
rect.x,
rect.y,
rect['width'],
rect['height']
);
};
/**
* Renders a Display Object according to its visual properties. The rendering
* process includes rendering of any sub-objects, etc..
*
* @param {rune.display.DisplayObject} obj The object to be rendered.
* @param {number} [offsetX] Render offset in x direction.
* @param {number} [offsetY] Render offset in y direction.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.renderDisplayObject = function(obj, offsetX, offsetY) {
if (obj['hidden'] == false) {
var frame = obj.getRenderFrame();
frame.x -= offsetX || 0;
frame.y -= offsetY || 0;
if (this.intersects(frame)) {
obj.render();
var fx = (obj['flippedX']) ? -1 : 1;
var fy = (obj['flippedY']) ? -1 : 1;
var tx = (frame.x + obj['pivotX']);
var ty = (frame.y + obj['pivotY']);
this.m_context.save();
this.m_context.translate(tx, ty);
this.m_context.scale(fx, fy);
this.m_context.rotate(obj['rotation'] * rune.util.Math.DEG_TO_RAD);
this.m_context.translate(-tx, -ty);
this.m_context.globalAlpha = obj['alpha'];
this.m_context.drawImage(
obj['canvas']['element'],
frame['clipping']['x'],
frame['clipping']['y'],
frame['clipping']['width'],
frame['clipping']['height'],
frame['x'],
frame['y'],
frame['width'],
frame['height']
);
this.m_context.restore();
}
}
};
/**
* Renders a Path object as a series of connected lines.
*
* @param {rune.util.Path} path Path to render.
* @param {number} [offsetX] Displacement in x direction.
* @param {number} [offsetY] Displacement in y direction.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.renderPath = function(path, offsetX, offsetY) {
offsetX = offsetX || 0;
offsetY = offsetY || 0;
var a = null;
var b = null;
for (var i = 0; i < path['length']; i++) {
a = path.getAt(i + 0);
b = path.getAt(i + 1);
if (a && b) {
this.drawLine(
a['x'] - offsetX,
a['y'] - offsetY,
b['x'] - offsetX,
b['y'] - offsetY,
path.color,
path.thickness,
path.alpha
);
}
}
};
/**
* Renders Tiles from a Tilemap.
*
* @param {rune.tilemap.Tilemap} map The map to be rendered.
* @param {rune.geom.Rectangle} rect Which part of the map to render.
* @param {number} buffer Index to the buffer (layer) to be rendered.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.renderTiles = function(map, rect, buffer) {
var ti = (buffer == 0) ? map.getBackBufferInRect(rect) : map.getFrontBufferInRect(rect);
var wt = map['widthInTiles'];
var ht = map['heightInTiles'];
var tw = map['tileWidth'];
var th = map['tileHeight'];
var ox = rect['x'] % tw;
var oy = rect['y'] % th;
var tv = 0;
var tp = null;
if (ox < 0) {
ox = tw + ox;
}
if (oy < 0) {
oy = th + oy;
}
var ua = Math.floor(rect['x'] / tw);
var ub = Math.floor(rect['y'] / th);
for (var i = 0; i < ti.length; i++) {
var tb = (buffer == 0) ? 'back' : 'front';
tv = map[tb].getTileValueAt(ti[i]);
if (tv > 0) {
tp = map.getTileTextureRectOf(tv);
this.m_context.drawImage(
map['texture'],
tp.x,
tp.y,
tw,
th,
(((ti[i] % wt) - ua) * tw) - ox,
((Math.floor(ti[i] / wt) - ub) * th) - oy,
tw,
th
);
}
}
};
/**
* Resizes the canvas object to specified dimensions.
*
* @param {number} width The new width of the canvas.
* @param {number} height The new height of the canvas.
*
* @return {undefined}
*/
rune.display.Canvas.prototype.resize = function(width, height) {
this.m_canvas.width = width;
this.m_canvas.height = height;
};
//------------------------------------------------------------------------------
// Protected prototype methods
//------------------------------------------------------------------------------
/**
* The class constructor.
*
* @return {undefined}
* @protected
* @ignore
*/
rune.display.Canvas.prototype.m_construct = function() {
this.m_constructCanvas();
this.m_constructContext();
};
/**
* Creates the HTMLCanvasElement that represents the pixel buffer.
*
* @throws {Error} If a canvas already exists.
*
* @return {undefined}
* @protected
* @ignore
*/
rune.display.Canvas.prototype.m_constructCanvas = function() {
this.m_disposeCanvas();
if (this.m_canvas === null) {
this.m_canvas = document.createElement('canvas');
this.m_canvas.width = this.m_width;
this.m_canvas.height = this.m_height;
this.m_canvas.style.imageRendering = "pixelated";
} else throw new Error();
};
/**
* Creates the CanvasRenderingContext2D used to draw the pixel buffer.
*
* @throws {Error} If a context already exists.
*
* @return {undefined}
* @protected
* @ignore
*/
rune.display.Canvas.prototype.m_constructContext = function() {
this.m_disposeContext();
if (this.m_context == null && this.m_canvas instanceof HTMLCanvasElement ) {
this.m_context = this.m_canvas.getContext("2d", {
willReadFrequently: true
});
this.m_context.imageSmoothingEnabled = false;
this.m_context.imageSmoothingQuality = "low";
} else throw new Error();
};
/**
* Deletes current context.
*
* @return {undefined}
* @protected
* @ignore
*/
rune.display.Canvas.prototype.m_disposeContext = function() {
if (this.m_context != null) {
this.m_context = null;
};
};
/**
* Deletes current canvas.
*
* @return {undefined}
* @protected
* @ignore
*/
rune.display.Canvas.prototype.m_disposeCanvas = function() {
if (this.m_canvas instanceof HTMLCanvasElement) {
if (this.m_canvas.parentNode != null) {
this.m_canvas.parentNode.removeChild(this.m_canvas);
}
this.m_canvas = null;
}
};</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="rune.html">rune</a></li><li><a href="rune.animation.html">animation</a></li><li><a href="rune.camera.html">camera</a></li><li><a href="rune.color.html">color</a></li><li><a href="rune.console.html">console</a></li><li><a href="rune.data.html">data</a></li><li><a href="rune.debug.html">debug</a></li><li><a href="rune.display.html">display</a></li><li><a href="rune.geom.html">geom</a></li><li><a href="rune.input.html">input</a></li><li><a href="rune.media.html">media</a></li><li><a href="rune.net.html">net</a></li><li><a href="rune.particle.html">particle</a></li><li><a href="rune.physics.html">physics</a></li><li><a href="rune.resource.html">resource</a></li><li><a href="rune.scene.html">scene</a></li><li><a href="rune.state.html">state</a></li><li><a href="rune.system.html">system</a></li><li><a href="rune.text.html">text</a></li><li><a href="rune.tilemap.html">tilemap</a></li><li><a href="rune.timer.html">timer</a></li><li><a href="rune.tween.html">tween</a></li><li><a href="rune.ui.html">ui</a></li><li><a href="rune.util.html">util</a></li></ul><h3>Classes</h3><ul><li><a href="rune.animation.Animation.html">Animation</a></li><li><a href="rune.animation.Animations.html">Animations</a></li><li><a href="rune.animation.AnimationScripts.html">AnimationScripts</a></li><li><a href="rune.camera.Camera.html">Camera</a></li><li><a href="rune.camera.CameraFade.html">CameraFade</a></li><li><a href="rune.camera.CameraFlash.html">CameraFlash</a></li><li><a href="rune.camera.Cameras.html">Cameras</a></li><li><a href="rune.camera.CameraShake.html">CameraShake</a></li><li><a href="rune.camera.CameraTargets.html">CameraTargets</a></li><li><a href="rune.camera.CameraTint.html">CameraTint</a></li><li><a href="rune.camera.CameraTintTween.html">CameraTintTween</a></li><li><a href="rune.camera.CameraViewport.html">CameraViewport</a></li><li><a href="rune.color.Color24.html">Color24</a></li><li><a href="rune.color.Color32.html">Color32</a></li><li><a href="rune.color.ColorComponent.html">ColorComponent</a></li><li><a href="rune.console.Console.html">Console</a></li><li><a href="rune.console.ConsoleCommand.html">ConsoleCommand</a></li><li><a href="rune.console.ConsoleCommands.html">ConsoleCommands</a></li><li><a href="rune.console.ConsoleCursor.html">ConsoleCursor</a></li><li><a href="rune.console.ConsoleHistory.html">ConsoleHistory</a></li><li><a href="rune.console.ConsoleInput.html">ConsoleInput</a></li><li><a href="rune.console.ConsoleManager.html">ConsoleManager</a></li><li><a href="rune.console.ConsoleOutput.html">ConsoleOutput</a></li><li><a href="rune.data.Highscores.html">Highscores</a></li><li><a href="rune.data.Loader.html">Loader</a></li><li><a href="rune.data.LoaderDebug.html">LoaderDebug</a></li><li><a href="rune.data.Logo.html">Logo</a></li><li><a href="rune.data.Requests.html">Requests</a></li><li><a href="rune.debug.Debugger.html">Debugger</a></li><li><a href="rune.debug.Framerate.html">Framerate</a></li><li><a href="rune.debug.Histogram.html">Histogram</a></li><li><a href="rune.debug.Master.html">Master</a></li><li><a href="rune.debug.Memory.html">Memory</a></li><li><a href="rune.debug.Music.html">Music</a></li><li><a href="rune.debug.Render.html">Render</a></li><li><a href="rune.debug.Sound.html">Sound</a></li><li><a href="rune.debug.Update.html">Update</a></li><li><a href="rune.display.Artboard.html">Artboard</a></li><li><a href="rune.display.Canvas.html">Canvas</a></li><li><a href="rune.display.DisplayGroup.html">DisplayGroup</a></li><li><a href="rune.display.DisplayGroups.html">DisplayGroups</a></li><li><a href="rune.display.DisplayObject.html">DisplayObject</a></li><li><a href="rune.display.DisplayObjectContainer.html">DisplayObjectContainer</a></li><li><a href="rune.display.Flicker.html">Flicker</a></li><li><a href="rune.display.Frame.html">Frame</a></li><li><a href="rune.display.Graphic.html">Graphic</a></li><li><a href="rune.display.Graphics.html">Graphics</a></li><li><a href="rune.display.Hitbox.html">Hitbox</a></li><li><a href="rune.display.InteractiveObject.html">InteractiveObject</a></li><li><a href="rune.display.Quadtree.html">Quadtree</a></li><li><a href="rune.display.RepeatedGraphic.html">RepeatedGraphic</a></li><li><a href="rune.display.Screen.html">Screen</a></li><li><a href="rune.display.Sprite.html">Sprite</a></li><li><a href="rune.display.Stage.html">Stage</a></li><li><a href="rune.display.Texture.html">Texture</a></li><li><a href="rune.geom.Point.html">Point</a></li><li><a href="rune.geom.Rectangle.html">Rectangle</a></li><li><a href="rune.geom.Vector2D.html">Vector2D</a></li><li><a href="rune.input.Gamepad.html">Gamepad</a></li><li><a href="rune.input.Gamepads.html">Gamepads</a></li><li><a href="rune.input.GamepadsOptions.html">GamepadsOptions</a></li><li><a href="rune.input.Inputs.html">Inputs</a></li><li><a href="rune.input.Keyboard.html">Keyboard</a></li><li><a href="rune.input.KeyboardKey.html">KeyboardKey</a></li><li><a href="rune.input.KeyboardOptions.html">KeyboardOptions</a></li><li><a href="rune.media.Sound.html">Sound</a></li><li><a href="rune.media.SoundChannel.html">SoundChannel</a></li><li><a href="rune.media.Sounds.html">Sounds</a></li><li><a href="rune.net.URLLoader.html">URLLoader</a></li><li><a href="rune.net.URLRequest.html">URLRequest</a></li><li><a href="rune.net.URLResponse.html">URLResponse</a></li><li><a href="rune.particle.Emitter.html">Emitter</a></li><li><a href="rune.particle.EmitterOptions.html">EmitterOptions</a></li><li><a href="rune.particle.Particle.html">Particle</a></li><li><a href="rune.physics.Space.html">Space</a></li><li><a href="rune.physics.Velocity.html">Velocity</a></li><li><a href="rune.resource.Request.html">Request</a></li><li><a href="rune.resource.Requester.html">Requester</a></li><li><a href="rune.resource.RequesterOptions.html">RequesterOptions</a></li><li><a href="rune.resource.Requests.html">Requests</a></li><li><a href="rune.resource.Resource.html">Resource</a></li><li><a href="rune.resource.Resources.html">Resources</a></li><li><a href="rune.scene.Scene.html">Scene</a></li><li><a href="rune.scene.Scenes.html">Scenes</a></li><li><a href="rune.state.State.html">State</a></li><li><a href="rune.state.States.html">States</a></li><li><a href="rune.system.Application.html">Application</a></li><li><a href="rune.system.Config.html">Config</a></li><li><a href="rune.system.Time.html">Time</a></li><li><a href="rune.text.BitmapField.html">BitmapField</a></li><li><a href="rune.text.BitmapFormat.html">BitmapFormat</a></li><li><a href="rune.tilemap.Block.html">Block</a></li><li><a href="rune.tilemap.Tile.html">Tile</a></li><li><a href="rune.tilemap.Tilemap.html">Tilemap</a></li><li><a href="rune.tilemap.TilemapLayer.html">TilemapLayer</a></li><li><a href="rune.timer.Timer.html">Timer</a></li><li><a href="rune.timer.TimerOptions.html">TimerOptions</a></li><li><a href="rune.timer.Timers.html">Timers</a></li><li><a href="rune.tween.Circular.html">Circular</a></li><li><a href="rune.tween.Cubic.html">Cubic</a></li><li><a href="rune.tween.Expo.html">Expo</a></li><li><a href="rune.tween.Linear.html">Linear</a></li><li><a href="rune.tween.Quad.html">Quad</a></li><li><a href="rune.tween.Quart.html">Quart</a></li><li><a href="rune.tween.Quint.html">Quint</a></li><li><a href="rune.tween.Sine.html">Sine</a></li><li><a href="rune.tween.Tween.html">Tween</a></li><li><a href="rune.tween.Tweens.html">Tweens</a></li><li><a href="rune.tween.TweenValue.html">TweenValue</a></li><li><a href="rune.ui.Counter.html">Counter</a></li><li><a href="rune.ui.CounterDigit.html">CounterDigit</a></li><li><a href="rune.ui.Progressbar.html">Progressbar</a></li><li><a href="rune.ui.VTList.html">VTList</a></li><li><a href="rune.ui.VTListElement.html">VTListElement</a></li><li><a href="rune.ui.VTMenu.html">VTMenu</a></li><li><a href="rune.ui.VTMenuPointer.html">VTMenuPointer</a></li><li><a href="rune.util.Executable.html">Executable</a></li><li><a href="rune.util.Filter.html">Filter</a></li><li><a href="rune.util.Math.html">Math</a></li><li><a href="rune.util.Palette.html">Palette</a></li><li><a href="rune.util.Path.html">Path</a></li><li><a href="rune.util.Paths.html">Paths</a></li><li><a href="rune.util.Stack.html">Stack</a></li><li><a href="rune.util.URL.html">URL</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Tue May 21 2024 09:43:50 GMT+0200 (Central European Summer Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>