littlejsengine 1.1.6 → 1.1.8

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 (85) hide show
  1. package/docs/Audio.html +2268 -0
  2. package/docs/Color.html +2989 -0
  3. package/docs/Debug.html +2933 -0
  4. package/docs/Draw.html +4092 -0
  5. package/docs/EngineObject.html +4458 -0
  6. package/docs/Input.html +2482 -0
  7. package/docs/Medal.html +1007 -0
  8. package/docs/Medals.html +628 -0
  9. package/docs/Music.html +584 -0
  10. package/docs/Newgrounds.html +1399 -0
  11. package/docs/Particle.html +4535 -0
  12. package/docs/ParticleEmitter.html +7770 -0
  13. package/docs/Random.html +1774 -0
  14. package/docs/Settings.html +2679 -0
  15. package/docs/Sound.html +1249 -0
  16. package/docs/TileCollision.html +1409 -0
  17. package/docs/TileLayer.html +6948 -0
  18. package/docs/TileLayerData.html +1052 -0
  19. package/docs/Timer.html +1183 -0
  20. package/docs/Utilities.html +3281 -0
  21. package/docs/Vector2.html +4207 -0
  22. package/docs/WebGL.html +2327 -0
  23. package/docs/engine.js.html +429 -0
  24. package/docs/engineAudio.js.html +609 -0
  25. package/docs/engineDebug.js.html +725 -0
  26. package/docs/engineDraw.js.html +419 -0
  27. package/docs/engineInput.js.html +401 -0
  28. package/docs/engineMedals.js.html +461 -0
  29. package/docs/engineObject.js.html +518 -0
  30. package/docs/engineParticles.js.html +441 -0
  31. package/docs/engineSettings.js.html +349 -0
  32. package/docs/engineTileLayer.js.html +513 -0
  33. package/docs/engineUtilities.js.html +647 -0
  34. package/docs/engineWebGL.js.html +522 -0
  35. package/docs/fonts/MavenPro-Regular.ttf +0 -0
  36. package/docs/fonts/Montserrat-Regular.ttf +0 -0
  37. package/docs/fonts/Muli-Black.ttf +0 -0
  38. package/docs/fonts/OFL-hind.txt +93 -0
  39. package/docs/fonts/OFL-montserrat.txt +93 -0
  40. package/docs/global.html +1691 -0
  41. package/docs/index.css +6 -0
  42. package/docs/index.html +247 -0
  43. package/docs/scripts/fix-code-block.js +53 -0
  44. package/docs/scripts/fix-navbar.js +25 -0
  45. package/docs/scripts/linenumber.js +25 -0
  46. package/docs/scripts/misc.js +217 -0
  47. package/docs/scripts/resize.js +85 -0
  48. package/docs/scripts/search.js +83 -0
  49. package/docs/scripts/third-party/Apache-License-2.0.txt +202 -0
  50. package/docs/scripts/third-party/fuse.js +9 -0
  51. package/docs/scripts/third-party/lang-css.js +2 -0
  52. package/docs/scripts/third-party/prettify.js +28 -0
  53. package/docs/static/favicon.png +0 -0
  54. package/docs/static/index.css +4 -0
  55. package/docs/styles/clean-jsdoc-theme-base.css +393 -0
  56. package/docs/styles/clean-jsdoc-theme-dark.css +324 -0
  57. package/docs/styles/clean-jsdoc-theme-light.css +319 -0
  58. package/docs/styles/reset.css +346 -0
  59. package/docs/styles/third-party/ionicons.min.css +11 -0
  60. package/docs/styles/third-party/prettify-jsdoc.css +111 -0
  61. package/docs/styles/third-party/prettify-tomorrow.css +5 -0
  62. package/engine/engine.all.js +94 -110
  63. package/engine/engine.all.min.js +1 -1
  64. package/engine/engine.all.release.js +94 -110
  65. package/engine/engine.js +14 -17
  66. package/engine/engineAudio.js +7 -7
  67. package/engine/engineDraw.js +6 -6
  68. package/engine/engineInput.js +7 -7
  69. package/engine/engineMedals.js +3 -3
  70. package/engine/engineObject.js +15 -15
  71. package/engine/engineParticles.js +3 -3
  72. package/engine/engineSettings.js +30 -43
  73. package/engine/engineTileLayer.js +5 -5
  74. package/engine/engineUtilities.js +4 -4
  75. package/examples/breakout/game.js +1 -1
  76. package/examples/breakout/gameObjects.js +1 -1
  77. package/examples/breakout/index.html +3 -3
  78. package/examples/platformer/gameObjects.js +1 -1
  79. package/examples/platformer/gamePlayer.js +1 -1
  80. package/examples/platformer/index.html +6 -6
  81. package/examples/puzzle/game.js +1 -1
  82. package/examples/puzzle/index.html +2 -2
  83. package/examples/stress/index.html +1 -1
  84. package/index.html +13 -13
  85. package/package.json +1 -1
package/docs/Draw.html ADDED
@@ -0,0 +1,4092 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <!-- Adding favicon -->
9
+
10
+ <link rel="icon" href="./static/favicon.png" />
11
+
12
+
13
+ <!-- Adding meta -->
14
+
15
+
16
+ <!-- Adding external script-->
17
+
18
+
19
+ <!-- Adding external style-->
20
+
21
+
22
+ <!-- Adding scripts-->
23
+
24
+
25
+ <!-- Adding style-->
26
+
27
+
28
+ <!-- Adding overlay script-->
29
+
30
+
31
+ <!-- Adding overlay style-->
32
+
33
+
34
+
35
+ <title>
36
+ Draw
37
+ </title>
38
+
39
+ <!--[if lt IE 9]>
40
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
41
+ <![endif]-->
42
+ <link type="text/css" rel="stylesheet" href="styles/third-party/ionicons.min.css">
43
+ <link type="text/css" rel="stylesheet" href="styles/third-party/prettify-tomorrow.css">
44
+ <link type="text/css" rel="stylesheet" href="styles/reset.css">
45
+ <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-base.css">
46
+ <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-dark.css">
47
+
48
+ <style>
49
+ .prettyprint code {font-family:monospace}
50
+ </style>
51
+
52
+ <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
53
+ style="display:none">
54
+ <defs>
55
+ <symbol id="copy-icon" viewbox="0 0 488.3 488.3">
56
+ <g>
57
+ <path
58
+ d="M314.25,85.4h-227c-21.3,0-38.6,17.3-38.6,38.6v325.7c0,21.3,17.3,38.6,38.6,38.6h227c21.3,0,38.6-17.3,38.6-38.6V124 C352.75,102.7,335.45,85.4,314.25,85.4z M325.75,449.6c0,6.4-5.2,11.6-11.6,11.6h-227c-6.4,0-11.6-5.2-11.6-11.6V124 c0-6.4,5.2-11.6,11.6-11.6h227c6.4,0,11.6,5.2,11.6,11.6V449.6z" />
59
+ <path
60
+ d="M401.05,0h-227c-21.3,0-38.6,17.3-38.6,38.6c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5c0-6.4,5.2-11.6,11.6-11.6h227 c6.4,0,11.6,5.2,11.6,11.6v325.7c0,6.4-5.2,11.6-11.6,11.6c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5c21.3,0,38.6-17.3,38.6-38.6 V38.6C439.65,17.3,422.35,0,401.05,0z" />
61
+ </g>
62
+ </symbol>
63
+ <symbol id='search-icon' viewBox="0 0 512 512">
64
+ <g>
65
+ <g>
66
+ <path
67
+ d="M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z" />
68
+ </g>
69
+ </g>
70
+ <g>
71
+ <g>
72
+ <path
73
+ d="M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z" />
74
+ </g>
75
+ </g>
76
+ </symbol>
77
+ <symbol id="down-icon" viewBox="0 0 16 16">
78
+ <path
79
+ fill-rule="evenodd"
80
+ clip-rule="evenodd"
81
+ d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z"
82
+ >
83
+ </path>
84
+ </symbol>
85
+ </defs>
86
+ </svg>
87
+ </head>
88
+
89
+ <body>
90
+
91
+ <nav class="navbar" id="navbar">
92
+ <div class="navbar-heading" id="navbar-heading"><a href="index.html"><h2 class="navbar-heading-text">LittleJS - The Tiny JavaScript Game Engine That Can!</h2></a></div><div class="search-box" id="search-box"><div class="search-box-input-container"><input class="search-box-input" type="text" placeholder="Search..." id="search-box-input" /><svg class="search-icon" alt="search-icon"><use xlink:href="#search-icon"></use></svg></div><div class="search-item-container" id="search-item-container"><ul class="search-item-ul" id="search-item-ul"></ul></div></div><div class="sidebar-main-content" id="sidebar-main-content"><div class="accordion collapsed" id="3026681" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=864267><div class="accordion-heading child"><a href="Color.html">Color</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Color.html#add">add</a></li><li data-type='method'><a href="Color.html#clamp">clamp</a></li><li data-type='method'><a href="Color.html#copy">copy</a></li><li data-type='method'><a href="Color.html#divide">divide</a></li><li data-type='method'><a href="Color.html#lerp">lerp</a></li><li data-type='method'><a href="Color.html#multiply">multiply</a></li><li data-type='method'><a href="Color.html#mutate">mutate</a></li><li data-type='method'><a href="Color.html#rgba">rgba</a></li><li data-type='method'><a href="Color.html#rgbaInt">rgbaInt</a></li><li data-type='method'><a href="Color.html#scale">scale</a></li><li data-type='method'><a href="Color.html#setHSLA">setHSLA</a></li><li data-type='method'><a href="Color.html#subtract">subtract</a></li></ul></li><li class="accordion collapsed child" id=3569399><div class="accordion-heading child"><a href="EngineObject.html">EngineObject</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="EngineObject.html#addChild">addChild</a></li><li data-type='method'><a href="EngineObject.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="EngineObject.html#applyForce">applyForce</a></li><li data-type='method'><a href="EngineObject.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="EngineObject.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="EngineObject.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="EngineObject.html#destroy">destroy</a></li><li data-type='method'><a href="EngineObject.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="EngineObject.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="EngineObject.html#removeChild">removeChild</a></li><li data-type='method'><a href="EngineObject.html#render">render</a></li><li data-type='method'><a href="EngineObject.html#setCollision">setCollision</a></li><li data-type='method'><a href="EngineObject.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=2970668><div class="accordion-heading child"><a href="Medal.html">Medal</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Medal.html#render">render</a></li><li data-type='method'><a href="Medal.html#renderIcon">renderIcon</a></li><li data-type='method'><a href="Medal.html#unlock">unlock</a></li></ul></li><li class="accordion collapsed child" id=2533015><div class="accordion-heading child"><a href="Music.html">Music</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Music.html#play">play</a></li></ul></li><li class="accordion collapsed child" id=5490011><div class="accordion-heading child"><a href="Newgrounds.html">Newgrounds</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Newgrounds.html#call">call</a></li><li data-type='method'><a href="Newgrounds.html#getScores">getScores</a></li><li data-type='method'><a href="Newgrounds.html#logView">logView</a></li><li data-type='method'><a href="Newgrounds.html#postScore">postScore</a></li><li data-type='method'><a href="Newgrounds.html#unlockMedal">unlockMedal</a></li></ul></li><li class="accordion collapsed child" id=5370538><div class="accordion-heading child"><a href="Particle.html">Particle</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Particle.html#addChild">addChild</a></li><li data-type='method'><a href="Particle.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="Particle.html#applyForce">applyForce</a></li><li data-type='method'><a href="Particle.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="Particle.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="Particle.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="Particle.html#destroy">destroy</a></li><li data-type='method'><a href="Particle.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="Particle.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="Particle.html#removeChild">removeChild</a></li><li data-type='method'><a href="Particle.html#render">render</a></li><li data-type='method'><a href="Particle.html#setCollision">setCollision</a></li><li data-type='method'><a href="Particle.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=4983401><div class="accordion-heading child"><a href="ParticleEmitter.html">ParticleEmitter</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="ParticleEmitter.html#addChild">addChild</a></li><li data-type='method'><a href="ParticleEmitter.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="ParticleEmitter.html#applyForce">applyForce</a></li><li data-type='method'><a href="ParticleEmitter.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="ParticleEmitter.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="ParticleEmitter.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="ParticleEmitter.html#destroy">destroy</a></li><li data-type='method'><a href="ParticleEmitter.html#emitParticle">emitParticle</a></li><li data-type='method'><a href="ParticleEmitter.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="ParticleEmitter.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="ParticleEmitter.html#removeChild">removeChild</a></li><li data-type='method'><a href="ParticleEmitter.html#render">render</a></li><li data-type='method'><a href="ParticleEmitter.html#setCollision">setCollision</a></li><li data-type='method'><a href="ParticleEmitter.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=4102019><div class="accordion-heading child"><a href="Sound.html">Sound</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Sound.html#play">play</a></li><li data-type='method'><a href="Sound.html#playNote">playNote</a></li></ul></li><li class="accordion collapsed child" id=3455641><div class="accordion-heading child"><a href="TileLayer.html">TileLayer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileLayer.html#addChild">addChild</a></li><li data-type='method'><a href="TileLayer.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="TileLayer.html#applyForce">applyForce</a></li><li data-type='method'><a href="TileLayer.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="TileLayer.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="TileLayer.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="TileLayer.html#destroy">destroy</a></li><li data-type='method'><a href="TileLayer.html#drawAllTileData">drawAllTileData</a></li><li data-type='method'><a href="TileLayer.html#drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="TileLayer.html#drawRect">drawRect</a></li><li data-type='method'><a href="TileLayer.html#drawTile">drawTile</a></li><li data-type='method'><a href="TileLayer.html#drawTileData">drawTileData</a></li><li data-type='method'><a href="TileLayer.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="TileLayer.html#getData">getData</a></li><li data-type='method'><a href="TileLayer.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="TileLayer.html#redraw">redraw</a></li><li data-type='method'><a href="TileLayer.html#redrawEnd">redrawEnd</a></li><li data-type='method'><a href="TileLayer.html#redrawStart">redrawStart</a></li><li data-type='method'><a href="TileLayer.html#removeChild">removeChild</a></li><li data-type='method'><a href="TileLayer.html#render">render</a></li><li data-type='method'><a href="TileLayer.html#setCollision">setCollision</a></li><li data-type='method'><a href="TileLayer.html#setData">setData</a></li><li data-type='method'><a href="TileLayer.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=1570904><div class="accordion-heading child"><a href="TileLayerData.html">TileLayerData</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileLayerData.html#clear">clear</a></li></ul></li><li class="accordion collapsed child" id=3515045><div class="accordion-heading child"><a href="Timer.html">Timer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Timer.html#active">active</a></li><li data-type='method'><a href="Timer.html#elapsed">elapsed</a></li><li data-type='method'><a href="Timer.html#get">get</a></li><li data-type='method'><a href="Timer.html#getPercent">getPercent</a></li><li data-type='method'><a href="Timer.html#isSet">isSet</a></li><li data-type='method'><a href="Timer.html#set">set</a></li><li data-type='method'><a href="Timer.html#unset">unset</a></li></ul></li><li class="accordion collapsed child" id=7852068><div class="accordion-heading child"><a href="Vector2.html">Vector2</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Vector2.html#add">add</a></li><li data-type='method'><a href="Vector2.html#angle">angle</a></li><li data-type='method'><a href="Vector2.html#area">area</a></li><li data-type='method'><a href="Vector2.html#arrayCheck">arrayCheck</a></li><li data-type='method'><a href="Vector2.html#clampLength">clampLength</a></li><li data-type='method'><a href="Vector2.html#copy">copy</a></li><li data-type='method'><a href="Vector2.html#cross">cross</a></li><li data-type='method'><a href="Vector2.html#direction">direction</a></li><li data-type='method'><a href="Vector2.html#distance">distance</a></li><li data-type='method'><a href="Vector2.html#distanceSquared">distanceSquared</a></li><li data-type='method'><a href="Vector2.html#divide">divide</a></li><li data-type='method'><a href="Vector2.html#dot">dot</a></li><li data-type='method'><a href="Vector2.html#flip">flip</a></li><li data-type='method'><a href="Vector2.html#floor">floor</a></li><li data-type='method'><a href="Vector2.html#invert">invert</a></li><li data-type='method'><a href="Vector2.html#length">length</a></li><li data-type='method'><a href="Vector2.html#lengthSquared">lengthSquared</a></li><li data-type='method'><a href="Vector2.html#lerp">lerp</a></li><li data-type='method'><a href="Vector2.html#multiply">multiply</a></li><li data-type='method'><a href="Vector2.html#normalize">normalize</a></li><li data-type='method'><a href="Vector2.html#rotate">rotate</a></li><li data-type='method'><a href="Vector2.html#scale">scale</a></li><li data-type='method'><a href="Vector2.html#setAngle">setAngle</a></li><li data-type='method'><a href="Vector2.html#subtract">subtract</a></li></ul></li></ul> </div><div class="accordion collapsed" id="813939" > <h3 class="accordion-heading">Namespaces<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=2717358><div class="accordion-heading child"><a href="Audio.html">Audio</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Audio.html#.getNoteFrequency">getNoteFrequency</a></li><li data-type='method'><a href="Audio.html#.playAudioFile">playAudioFile</a></li><li data-type='method'><a href="Audio.html#.playSamples">playSamples</a></li><li data-type='method'><a href="Audio.html#.speak">speak</a></li><li data-type='method'><a href="Audio.html#.stopSpeech">stopSpeech</a></li><li data-type='method'><a href="Audio.html#.zzfx">zzfx</a></li><li data-type='method'><a href="Audio.html#.zzfxG">zzfxG</a></li><li data-type='method'><a href="Audio.html#.zzfxM">zzfxM</a></li></ul></li><li class="accordion collapsed child" id=8015982><div class="accordion-heading child"><a href="Debug.html">Debug</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Debug.html#.debugAABB">debugAABB</a></li><li data-type='method'><a href="Debug.html#.debugCircle">debugCircle</a></li><li data-type='method'><a href="Debug.html#.debugClear">debugClear</a></li><li data-type='method'><a href="Debug.html#.debugLine">debugLine</a></li><li data-type='method'><a href="Debug.html#.debugPoint">debugPoint</a></li><li data-type='method'><a href="Debug.html#.debugRect">debugRect</a></li><li data-type='method'><a href="Debug.html#.debugSaveCanvas">debugSaveCanvas</a></li><li data-type='method'><a href="Debug.html#.debugText">debugText</a></li></ul></li><li class="accordion collapsed child" id=3886530><div class="accordion-heading child"><a href="Draw.html">Draw</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Draw.html#.drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="Draw.html#.drawLine">drawLine</a></li><li data-type='method'><a href="Draw.html#.drawRect">drawRect</a></li><li data-type='method'><a href="Draw.html#.drawRectScreenSpace">drawRectScreenSpace</a></li><li data-type='method'><a href="Draw.html#.drawText">drawText</a></li><li data-type='method'><a href="Draw.html#.drawTile">drawTile</a></li><li data-type='method'><a href="Draw.html#.drawTileScreenSpace">drawTileScreenSpace</a></li><li data-type='method'><a href="Draw.html#.isFullscreen">isFullscreen</a></li><li data-type='method'><a href="Draw.html#.screenToWorld">screenToWorld</a></li><li data-type='method'><a href="Draw.html#.setBlendMode">setBlendMode</a></li><li data-type='method'><a href="Draw.html#.toggleFullscreen">toggleFullscreen</a></li><li data-type='method'><a href="Draw.html#.worldToScreen">worldToScreen</a></li></ul></li><li class="accordion collapsed child" id=2344392><div class="accordion-heading child"><a href="Input.html">Input</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Input.html#.clearInput">clearInput</a></li><li data-type='method'><a href="Input.html#.gamepadIsDown">gamepadIsDown</a></li><li data-type='method'><a href="Input.html#.gamepadStick">gamepadStick</a></li><li data-type='method'><a href="Input.html#.gamepadWasPressed">gamepadWasPressed</a></li><li data-type='method'><a href="Input.html#.gamepadWasReleased">gamepadWasReleased</a></li><li data-type='method'><a href="Input.html#.keyIsDown">keyIsDown</a></li><li data-type='method'><a href="Input.html#.keyWasPressed">keyWasPressed</a></li><li data-type='method'><a href="Input.html#.keyWasReleased">keyWasReleased</a></li></ul></li><li class="accordion collapsed child" id=4725200><div class="accordion-heading child"><a href="Medals.html">Medals</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Medals.html#.medalsInit">medalsInit</a></li></ul></li><li class="accordion collapsed child" id=7676165><div class="accordion-heading child"><a href="Random.html">Random</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Random.html#.rand">rand</a></li><li data-type='method'><a href="Random.html#.randColor">randColor</a></li><li data-type='method'><a href="Random.html#.randInCircle">randInCircle</a></li><li data-type='method'><a href="Random.html#.randInt">randInt</a></li><li data-type='method'><a href="Random.html#.randSeeded">randSeeded</a></li><li data-type='method'><a href="Random.html#.randSign">randSign</a></li><li data-type='method'><a href="Random.html#.randVector">randVector</a></li></ul></li><li class="accordion-list" id=""><a href="Settings.html">Settings</a></li><li class="accordion collapsed child" id=2840044><div class="accordion-heading child"><a href="TileCollision.html">TileCollision</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileCollision.html#.getTileCollisionData">getTileCollisionData</a></li><li data-type='method'><a href="TileCollision.html#.initTileCollision">initTileCollision</a></li><li data-type='method'><a href="TileCollision.html#.setTileCollisionData">setTileCollisionData</a></li><li data-type='method'><a href="TileCollision.html#.tileCollisionRaycast">tileCollisionRaycast</a></li><li data-type='method'><a href="TileCollision.html#.tileCollisionTest">tileCollisionTest</a></li></ul></li><li class="accordion collapsed child" id=6238309><div class="accordion-heading child"><a href="Utilities.html">Utilities</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Utilities.html#.abs">abs</a></li><li data-type='method'><a href="Utilities.html#.clamp">clamp</a></li><li data-type='method'><a href="Utilities.html#.formatTime">formatTime</a></li><li data-type='method'><a href="Utilities.html#.isOverlapping">isOverlapping</a></li><li data-type='method'><a href="Utilities.html#.lerp">lerp</a></li><li data-type='method'><a href="Utilities.html#.max">max</a></li><li data-type='method'><a href="Utilities.html#.min">min</a></li><li data-type='method'><a href="Utilities.html#.mod">mod</a></li><li data-type='method'><a href="Utilities.html#.nearestPowerOfTwo">nearestPowerOfTwo</a></li><li data-type='method'><a href="Utilities.html#.percent">percent</a></li><li data-type='method'><a href="Utilities.html#.sign">sign</a></li><li data-type='method'><a href="Utilities.html#.smoothStep">smoothStep</a></li><li data-type='method'><a href="Utilities.html#.vec2">vec2</a></li><li data-type='method'><a href="Utilities.html#.wave">wave</a></li></ul></li><li class="accordion collapsed child" id=6305592><div class="accordion-heading child"><a href="WebGL.html">WebGL</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="WebGL.html#.glCompileShader">glCompileShader</a></li><li data-type='method'><a href="WebGL.html#.glCopyToContext">glCopyToContext</a></li><li data-type='method'><a href="WebGL.html#.glCreateBuffer">glCreateBuffer</a></li><li data-type='method'><a href="WebGL.html#.glCreateProgram">glCreateProgram</a></li><li data-type='method'><a href="WebGL.html#.glCreateTexture">glCreateTexture</a></li><li data-type='method'><a href="WebGL.html#.glDraw">glDraw</a></li><li data-type='method'><a href="WebGL.html#.glFlush">glFlush</a></li><li data-type='method'><a href="WebGL.html#.glSetBlendMode">glSetBlendMode</a></li><li data-type='method'><a href="WebGL.html#.glSetTexture">glSetTexture</a></li></ul></li></ul> </div><div class="accordion collapsed" id="9475387" > <h3 class="accordion-heading">Global<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="global.html#engineCollideObjects">engineCollideObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineInit">engineInit</a></li><li class="accordion-list" id=""><a href="global.html#engineName">engineName</a></li><li class="accordion-list" id=""><a href="global.html#engineObjects">engineObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsCallback">engineObjectsCallback</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsDestroy">engineObjectsDestroy</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsUpdate">engineObjectsUpdate</a></li><li class="accordion-list" id=""><a href="global.html#engineVersion">engineVersion</a></li><li class="accordion-list" id=""><a href="global.html#FPS">FPS</a></li><li class="accordion-list" id=""><a href="global.html#frame">frame</a></li><li class="accordion-list" id=""><a href="global.html#paused">paused</a></li><li class="accordion-list" id=""><a href="global.html#time">time</a></li><li class="accordion-list" id=""><a href="global.html#timeDelta">timeDelta</a></li><li class="accordion-list" id=""><a href="global.html#timeReal">timeReal</a></li></ul> </div></div>
93
+
94
+
95
+ </nav>
96
+ <div class="navbar-ham" id="navbar-ham">
97
+ <div>
98
+ <div class="first"></div>
99
+ <div class="second"></div>
100
+ <div class="third"></div>
101
+ </div>
102
+ </div>
103
+
104
+ <div id="main" class="main-content">
105
+
106
+ <h1 id='page-title' class="page-title">
107
+ Draw
108
+ </h1>
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <section>
117
+
118
+
119
+ <header>
120
+
121
+
122
+ <h2>
123
+
124
+ Draw
125
+
126
+ </h2>
127
+
128
+
129
+
130
+ </header>
131
+
132
+
133
+ <article>
134
+ <div class="container-overview">
135
+
136
+
137
+ <div class="description">LittleJS Drawing System
138
  <br> - Hybrid with both Canvas2D and WebGL available
1
139
  <br> - Super fast tile sheet rendering with WebGL
2
140
  <br> - Can apply rotation, mirror, color and additive color
3
141
  <br> - Many useful utility functions</div>
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <dl class="details">
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
+ <div class="details-item-container">
177
+ <dt class="tag-source">Source:</dt>
178
+ <dd class="tag-source"><ul class="dummy"><li>
179
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line1">line 1</a>
180
+ </li></ul></dd>
181
+ </div>
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+ </dl>
190
+
191
+
192
+
193
+
194
+
195
+
196
+ </div>
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+ <h3 class="subsection-title">Members</h3>
210
+
211
+
212
+
213
+ <h4 class="name" id=".mainCanvas">
214
+ <a href="#.mainCanvas">#</a>
215
+ <span class="type-signature">(static) </span>mainCanvas<span class="type-signature"> :HTMLCanvasElement</span>
216
+ </h4>
217
+
218
+
219
+
220
+
221
+ <div class="description">
222
+ The primary 2D canvas visible to the user
223
+ </div>
224
+
225
+
226
+
227
+ <div class="member-item-container flex">
228
+ <strong>Type: </strong>
229
+ <ul>
230
+ <li>
231
+
232
+ <span class="param-type">HTMLCanvasElement</span>
233
+
234
+
235
+ </li>
236
+ </ul>
237
+ </div>
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+ <dl class="details">
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
+ <div class="details-item-container">
273
+ <dt class="tag-source">Source:</dt>
274
+ <dd class="tag-source"><ul class="dummy"><li>
275
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line20">line 20</a>
276
+ </li></ul></dd>
277
+ </div>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ </dl>
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+ <h4 class="name" id=".mainCanvasSize">
297
+ <a href="#.mainCanvasSize">#</a>
298
+ <span class="type-signature">(static) </span>mainCanvasSize<span class="type-signature"> :<a href="Vector2.html">Vector2</a></span>
299
+ </h4>
300
+
301
+
302
+
303
+
304
+ <div class="description">
305
+ The size of the main canvas (and other secondary canvases)
306
+ </div>
307
+
308
+
309
+
310
+ <div class="member-item-container flex">
311
+ <strong>Type: </strong>
312
+ <ul>
313
+ <li>
314
+
315
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
316
+
317
+
318
+ </li>
319
+ </ul>
320
+ </div>
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+ <dl class="details">
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
+ <div class="details-item-container">
356
+ <dt class="tag-source">Source:</dt>
357
+ <dd class="tag-source"><ul class="dummy"><li>
358
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line40">line 40</a>
359
+ </li></ul></dd>
360
+ </div>
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+ </dl>
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+ <h4 class="name" id=".mainContext">
380
+ <a href="#.mainContext">#</a>
381
+ <span class="type-signature">(static) </span>mainContext<span class="type-signature"> :CanvasRenderingContext2D</span>
382
+ </h4>
383
+
384
+
385
+
386
+
387
+ <div class="description">
388
+ 2d context for mainCanvas
389
+ </div>
390
+
391
+
392
+
393
+ <div class="member-item-container flex">
394
+ <strong>Type: </strong>
395
+ <ul>
396
+ <li>
397
+
398
+ <span class="param-type">CanvasRenderingContext2D</span>
399
+
400
+
401
+ </li>
402
+ </ul>
403
+ </div>
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+ <dl class="details">
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
+ <div class="details-item-container">
439
+ <dt class="tag-source">Source:</dt>
440
+ <dd class="tag-source"><ul class="dummy"><li>
441
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line25">line 25</a>
442
+ </li></ul></dd>
443
+ </div>
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+ </dl>
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+ <h4 class="name" id=".overlayCanvas">
463
+ <a href="#.overlayCanvas">#</a>
464
+ <span class="type-signature">(static) </span>overlayCanvas<span class="type-signature"> :HTMLCanvasElement</span>
465
+ </h4>
466
+
467
+
468
+
469
+
470
+ <div class="description">
471
+ A canvas that appears on top of everything the same size as mainCanvas
472
+ </div>
473
+
474
+
475
+
476
+ <div class="member-item-container flex">
477
+ <strong>Type: </strong>
478
+ <ul>
479
+ <li>
480
+
481
+ <span class="param-type">HTMLCanvasElement</span>
482
+
483
+
484
+ </li>
485
+ </ul>
486
+ </div>
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+ <dl class="details">
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
+ <div class="details-item-container">
522
+ <dt class="tag-source">Source:</dt>
523
+ <dd class="tag-source"><ul class="dummy"><li>
524
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line30">line 30</a>
525
+ </li></ul></dd>
526
+ </div>
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+ </dl>
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+ <h4 class="name" id=".overlayContext">
546
+ <a href="#.overlayContext">#</a>
547
+ <span class="type-signature">(static) </span>overlayContext<span class="type-signature"> :CanvasRenderingContext2D</span>
548
+ </h4>
549
+
550
+
551
+
552
+
553
+ <div class="description">
554
+ 2d context for overlayCanvas
555
+ </div>
556
+
557
+
558
+
559
+ <div class="member-item-container flex">
560
+ <strong>Type: </strong>
561
+ <ul>
562
+ <li>
563
+
564
+ <span class="param-type">CanvasRenderingContext2D</span>
565
+
566
+
567
+ </li>
568
+ </ul>
569
+ </div>
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+ <dl class="details">
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
+ <div class="details-item-container">
605
+ <dt class="tag-source">Source:</dt>
606
+ <dd class="tag-source"><ul class="dummy"><li>
607
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line35">line 35</a>
608
+ </li></ul></dd>
609
+ </div>
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+ </dl>
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+ <h4 class="name" id=".tileImage">
629
+ <a href="#.tileImage">#</a>
630
+ <span class="type-signature">(static, constant) </span>tileImage<span class="type-signature"> :Image</span>
631
+ </h4>
632
+
633
+
634
+
635
+
636
+ <div class="description">
637
+ Tile sheet for batch rendering system
638
+ </div>
639
+
640
+
641
+
642
+ <div class="member-item-container flex">
643
+ <strong>Type: </strong>
644
+ <ul>
645
+ <li>
646
+
647
+ <span class="param-type">Image</span>
648
+
649
+
650
+ </li>
651
+ </ul>
652
+ </div>
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+ <dl class="details">
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
+ <div class="details-item-container">
688
+ <dt class="tag-source">Source:</dt>
689
+ <dd class="tag-source"><ul class="dummy"><li>
690
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line15">line 15</a>
691
+ </li></ul></dd>
692
+ </div>
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+ </dl>
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+ <h3 class="subsection-title">Methods</h3>
714
+
715
+
716
+
717
+
718
+
719
+
720
+ <h4 class="name" id=".drawCanvas2D">
721
+ <a href="#.drawCanvas2D">#</a>
722
+ <span class="type-signature">(static) </span>drawCanvas2D<span class="signature">(pos, size, angle, mirror, drawFunction, context<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
723
+ </h4>
724
+
725
+
726
+
727
+
728
+
729
+ <div class="description">
730
+ Draw directly to a 2d canvas context in world space
731
+ </div>
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
742
+ <strong>Parameters:</strong>
743
+
744
+
745
+ <table class="params">
746
+ <thead>
747
+ <tr>
748
+
749
+ <th>Name</th>
750
+
751
+
752
+ <th>Type</th>
753
+
754
+
755
+ <th>Attributes</th>
756
+
757
+
758
+
759
+ <th>Default</th>
760
+
761
+
762
+ <th class="last">Description</th>
763
+ </tr>
764
+ </thead>
765
+
766
+ <tbody>
767
+
768
+
769
+ <tr>
770
+
771
+ <td class="name"><code>pos</code></td>
772
+
773
+
774
+ <td class="type">
775
+
776
+
777
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
778
+
779
+
780
+
781
+ </td>
782
+
783
+
784
+ <td class="attributes">
785
+
786
+
787
+
788
+
789
+
790
+ </td>
791
+
792
+
793
+
794
+ <td class="default">
795
+
796
+ </td>
797
+
798
+
799
+ <td class="description last"></td>
800
+ </tr>
801
+
802
+
803
+
804
+ <tr>
805
+
806
+ <td class="name"><code>size</code></td>
807
+
808
+
809
+ <td class="type">
810
+
811
+
812
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
813
+
814
+
815
+
816
+ </td>
817
+
818
+
819
+ <td class="attributes">
820
+
821
+
822
+
823
+
824
+
825
+ </td>
826
+
827
+
828
+
829
+ <td class="default">
830
+
831
+ </td>
832
+
833
+
834
+ <td class="description last"></td>
835
+ </tr>
836
+
837
+
838
+
839
+ <tr>
840
+
841
+ <td class="name"><code>angle</code></td>
842
+
843
+
844
+ <td class="type">
845
+
846
+
847
+ <span class="param-type">Number</span>
848
+
849
+
850
+
851
+ </td>
852
+
853
+
854
+ <td class="attributes">
855
+
856
+
857
+
858
+
859
+
860
+ </td>
861
+
862
+
863
+
864
+ <td class="default">
865
+
866
+ </td>
867
+
868
+
869
+ <td class="description last"></td>
870
+ </tr>
871
+
872
+
873
+
874
+ <tr>
875
+
876
+ <td class="name"><code>mirror</code></td>
877
+
878
+
879
+ <td class="type">
880
+
881
+
882
+ <span class="param-type">Boolean</span>
883
+
884
+
885
+
886
+ </td>
887
+
888
+
889
+ <td class="attributes">
890
+
891
+
892
+
893
+
894
+
895
+ </td>
896
+
897
+
898
+
899
+ <td class="default">
900
+
901
+ </td>
902
+
903
+
904
+ <td class="description last"></td>
905
+ </tr>
906
+
907
+
908
+
909
+ <tr>
910
+
911
+ <td class="name"><code>drawFunction</code></td>
912
+
913
+
914
+ <td class="type">
915
+
916
+
917
+ <span class="param-type">function</span>
918
+
919
+
920
+
921
+ </td>
922
+
923
+
924
+ <td class="attributes">
925
+
926
+
927
+
928
+
929
+
930
+ </td>
931
+
932
+
933
+
934
+ <td class="default">
935
+
936
+ </td>
937
+
938
+
939
+ <td class="description last"></td>
940
+ </tr>
941
+
942
+
943
+
944
+ <tr>
945
+
946
+ <td class="name"><code>context</code></td>
947
+
948
+
949
+ <td class="type">
950
+
951
+
952
+ <span class="param-type">CanvasRenderingContext2D</span>
953
+
954
+
955
+
956
+ </td>
957
+
958
+
959
+ <td class="attributes">
960
+
961
+ &lt;optional><br>
962
+
963
+
964
+
965
+
966
+
967
+ </td>
968
+
969
+
970
+
971
+ <td class="default">
972
+
973
+ mainContext
974
+
975
+ </td>
976
+
977
+
978
+ <td class="description last"></td>
979
+ </tr>
980
+
981
+
982
+ </tbody>
983
+ </table>
984
+
985
+ </div>
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+ <dl class="details">
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+ <div class="details-item-container">
1021
+ <dt class="tag-source">Source:</dt>
1022
+ <dd class="tag-source"><ul class="dummy"><li>
1023
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line184">line 184</a>
1024
+ </li></ul></dd>
1025
+ </div>
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+ </dl>
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+ <h4 class="name" id=".drawLine">
1058
+ <a href="#.drawLine">#</a>
1059
+ <span class="type-signature">(static) </span>drawLine<span class="signature">(posA, posB, thickness<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, useWebGL<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
1060
+ </h4>
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+ <div class="description">
1067
+ Draw colored line between two points
1068
+ </div>
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1079
+ <strong>Parameters:</strong>
1080
+
1081
+
1082
+ <table class="params">
1083
+ <thead>
1084
+ <tr>
1085
+
1086
+ <th>Name</th>
1087
+
1088
+
1089
+ <th>Type</th>
1090
+
1091
+
1092
+ <th>Attributes</th>
1093
+
1094
+
1095
+
1096
+ <th>Default</th>
1097
+
1098
+
1099
+ <th class="last">Description</th>
1100
+ </tr>
1101
+ </thead>
1102
+
1103
+ <tbody>
1104
+
1105
+
1106
+ <tr>
1107
+
1108
+ <td class="name"><code>posA</code></td>
1109
+
1110
+
1111
+ <td class="type">
1112
+
1113
+
1114
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1115
+
1116
+
1117
+
1118
+ </td>
1119
+
1120
+
1121
+ <td class="attributes">
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+ </td>
1128
+
1129
+
1130
+
1131
+ <td class="default">
1132
+
1133
+ </td>
1134
+
1135
+
1136
+ <td class="description last"></td>
1137
+ </tr>
1138
+
1139
+
1140
+
1141
+ <tr>
1142
+
1143
+ <td class="name"><code>posB</code></td>
1144
+
1145
+
1146
+ <td class="type">
1147
+
1148
+
1149
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1150
+
1151
+
1152
+
1153
+ </td>
1154
+
1155
+
1156
+ <td class="attributes">
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+ </td>
1163
+
1164
+
1165
+
1166
+ <td class="default">
1167
+
1168
+ </td>
1169
+
1170
+
1171
+ <td class="description last"></td>
1172
+ </tr>
1173
+
1174
+
1175
+
1176
+ <tr>
1177
+
1178
+ <td class="name"><code>thickness</code></td>
1179
+
1180
+
1181
+ <td class="type">
1182
+
1183
+
1184
+ <span class="param-type">Number</span>
1185
+
1186
+
1187
+
1188
+ </td>
1189
+
1190
+
1191
+ <td class="attributes">
1192
+
1193
+ &lt;optional><br>
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+ </td>
1200
+
1201
+
1202
+
1203
+ <td class="default">
1204
+
1205
+ .1
1206
+
1207
+ </td>
1208
+
1209
+
1210
+ <td class="description last"></td>
1211
+ </tr>
1212
+
1213
+
1214
+
1215
+ <tr>
1216
+
1217
+ <td class="name"><code>color</code></td>
1218
+
1219
+
1220
+ <td class="type">
1221
+
1222
+
1223
+ <span class="param-type"><a href="Color.html">Color</a></span>
1224
+
1225
+
1226
+
1227
+ </td>
1228
+
1229
+
1230
+ <td class="attributes">
1231
+
1232
+ &lt;optional><br>
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+ </td>
1239
+
1240
+
1241
+
1242
+ <td class="default">
1243
+
1244
+ new Color(1,1,1)
1245
+
1246
+ </td>
1247
+
1248
+
1249
+ <td class="description last"></td>
1250
+ </tr>
1251
+
1252
+
1253
+
1254
+ <tr>
1255
+
1256
+ <td class="name"><code>useWebGL</code></td>
1257
+
1258
+
1259
+ <td class="type">
1260
+
1261
+
1262
+ <span class="param-type">Boolean</span>
1263
+
1264
+
1265
+
1266
+ </td>
1267
+
1268
+
1269
+ <td class="attributes">
1270
+
1271
+ &lt;optional><br>
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+ </td>
1278
+
1279
+
1280
+
1281
+ <td class="default">
1282
+
1283
+ glEnable
1284
+
1285
+ </td>
1286
+
1287
+
1288
+ <td class="description last"></td>
1289
+ </tr>
1290
+
1291
+
1292
+ </tbody>
1293
+ </table>
1294
+
1295
+ </div>
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+ <dl class="details">
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+
1330
+ <div class="details-item-container">
1331
+ <dt class="tag-source">Source:</dt>
1332
+ <dd class="tag-source"><ul class="dummy"><li>
1333
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line169">line 169</a>
1334
+ </li></ul></dd>
1335
+ </div>
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+ </dl>
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ <h4 class="name" id=".drawRect">
1368
+ <a href="#.drawRect">#</a>
1369
+ <span class="type-signature">(static) </span>drawRect<span class="signature">(pos, size<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>, useWebGL<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
1370
+ </h4>
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+ <div class="description">
1377
+ Draw colored rect centered on pos
1378
+ </div>
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1389
+ <strong>Parameters:</strong>
1390
+
1391
+
1392
+ <table class="params">
1393
+ <thead>
1394
+ <tr>
1395
+
1396
+ <th>Name</th>
1397
+
1398
+
1399
+ <th>Type</th>
1400
+
1401
+
1402
+ <th>Attributes</th>
1403
+
1404
+
1405
+
1406
+ <th>Default</th>
1407
+
1408
+
1409
+ <th class="last">Description</th>
1410
+ </tr>
1411
+ </thead>
1412
+
1413
+ <tbody>
1414
+
1415
+
1416
+ <tr>
1417
+
1418
+ <td class="name"><code>pos</code></td>
1419
+
1420
+
1421
+ <td class="type">
1422
+
1423
+
1424
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1425
+
1426
+
1427
+
1428
+ </td>
1429
+
1430
+
1431
+ <td class="attributes">
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+ </td>
1438
+
1439
+
1440
+
1441
+ <td class="default">
1442
+
1443
+ </td>
1444
+
1445
+
1446
+ <td class="description last"></td>
1447
+ </tr>
1448
+
1449
+
1450
+
1451
+ <tr>
1452
+
1453
+ <td class="name"><code>size</code></td>
1454
+
1455
+
1456
+ <td class="type">
1457
+
1458
+
1459
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1460
+
1461
+
1462
+
1463
+ </td>
1464
+
1465
+
1466
+ <td class="attributes">
1467
+
1468
+ &lt;optional><br>
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+ </td>
1475
+
1476
+
1477
+
1478
+ <td class="default">
1479
+
1480
+ new Vector2(1,1)
1481
+
1482
+ </td>
1483
+
1484
+
1485
+ <td class="description last"></td>
1486
+ </tr>
1487
+
1488
+
1489
+
1490
+ <tr>
1491
+
1492
+ <td class="name"><code>color</code></td>
1493
+
1494
+
1495
+ <td class="type">
1496
+
1497
+
1498
+ <span class="param-type"><a href="Color.html">Color</a></span>
1499
+
1500
+
1501
+
1502
+ </td>
1503
+
1504
+
1505
+ <td class="attributes">
1506
+
1507
+ &lt;optional><br>
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+ </td>
1514
+
1515
+
1516
+
1517
+ <td class="default">
1518
+
1519
+ new Color(1,1,1)
1520
+
1521
+ </td>
1522
+
1523
+
1524
+ <td class="description last"></td>
1525
+ </tr>
1526
+
1527
+
1528
+
1529
+ <tr>
1530
+
1531
+ <td class="name"><code>angle</code></td>
1532
+
1533
+
1534
+ <td class="type">
1535
+
1536
+
1537
+ <span class="param-type">Number</span>
1538
+
1539
+
1540
+
1541
+ </td>
1542
+
1543
+
1544
+ <td class="attributes">
1545
+
1546
+ &lt;optional><br>
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+ </td>
1553
+
1554
+
1555
+
1556
+ <td class="default">
1557
+
1558
+ 0
1559
+
1560
+ </td>
1561
+
1562
+
1563
+ <td class="description last"></td>
1564
+ </tr>
1565
+
1566
+
1567
+
1568
+ <tr>
1569
+
1570
+ <td class="name"><code>useWebGL</code></td>
1571
+
1572
+
1573
+ <td class="type">
1574
+
1575
+
1576
+ <span class="param-type">Boolean</span>
1577
+
1578
+
1579
+
1580
+ </td>
1581
+
1582
+
1583
+ <td class="attributes">
1584
+
1585
+ &lt;optional><br>
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+ </td>
1592
+
1593
+
1594
+
1595
+ <td class="default">
1596
+
1597
+ glEnable
1598
+
1599
+ </td>
1600
+
1601
+
1602
+ <td class="description last"></td>
1603
+ </tr>
1604
+
1605
+
1606
+ </tbody>
1607
+ </table>
1608
+
1609
+ </div>
1610
+
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+ <dl class="details">
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+ <div class="details-item-container">
1645
+ <dt class="tag-source">Source:</dt>
1646
+ <dd class="tag-source"><ul class="dummy"><li>
1647
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line129">line 129</a>
1648
+ </li></ul></dd>
1649
+ </div>
1650
+
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+ </dl>
1658
+
1659
+
1660
+
1661
+
1662
+
1663
+
1664
+
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+ <h4 class="name" id=".drawRectScreenSpace">
1682
+ <a href="#.drawRectScreenSpace">#</a>
1683
+ <span class="type-signature">(static) </span>drawRectScreenSpace<span class="signature">(pos, size<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>, useWebGL<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
1684
+ </h4>
1685
+
1686
+
1687
+
1688
+
1689
+
1690
+ <div class="description">
1691
+ Draw colored rectangle in screen space
1692
+ </div>
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1703
+ <strong>Parameters:</strong>
1704
+
1705
+
1706
+ <table class="params">
1707
+ <thead>
1708
+ <tr>
1709
+
1710
+ <th>Name</th>
1711
+
1712
+
1713
+ <th>Type</th>
1714
+
1715
+
1716
+ <th>Attributes</th>
1717
+
1718
+
1719
+
1720
+ <th>Default</th>
1721
+
1722
+
1723
+ <th class="last">Description</th>
1724
+ </tr>
1725
+ </thead>
1726
+
1727
+ <tbody>
1728
+
1729
+
1730
+ <tr>
1731
+
1732
+ <td class="name"><code>pos</code></td>
1733
+
1734
+
1735
+ <td class="type">
1736
+
1737
+
1738
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1739
+
1740
+
1741
+
1742
+ </td>
1743
+
1744
+
1745
+ <td class="attributes">
1746
+
1747
+
1748
+
1749
+
1750
+
1751
+ </td>
1752
+
1753
+
1754
+
1755
+ <td class="default">
1756
+
1757
+ </td>
1758
+
1759
+
1760
+ <td class="description last"></td>
1761
+ </tr>
1762
+
1763
+
1764
+
1765
+ <tr>
1766
+
1767
+ <td class="name"><code>size</code></td>
1768
+
1769
+
1770
+ <td class="type">
1771
+
1772
+
1773
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1774
+
1775
+
1776
+
1777
+ </td>
1778
+
1779
+
1780
+ <td class="attributes">
1781
+
1782
+ &lt;optional><br>
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+ </td>
1789
+
1790
+
1791
+
1792
+ <td class="default">
1793
+
1794
+ new Vector2(1,1)
1795
+
1796
+ </td>
1797
+
1798
+
1799
+ <td class="description last"></td>
1800
+ </tr>
1801
+
1802
+
1803
+
1804
+ <tr>
1805
+
1806
+ <td class="name"><code>color</code></td>
1807
+
1808
+
1809
+ <td class="type">
1810
+
1811
+
1812
+ <span class="param-type"><a href="Color.html">Color</a></span>
1813
+
1814
+
1815
+
1816
+ </td>
1817
+
1818
+
1819
+ <td class="attributes">
1820
+
1821
+ &lt;optional><br>
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+ </td>
1828
+
1829
+
1830
+
1831
+ <td class="default">
1832
+
1833
+ new Color(1,1,1)
1834
+
1835
+ </td>
1836
+
1837
+
1838
+ <td class="description last"></td>
1839
+ </tr>
1840
+
1841
+
1842
+
1843
+ <tr>
1844
+
1845
+ <td class="name"><code>angle</code></td>
1846
+
1847
+
1848
+ <td class="type">
1849
+
1850
+
1851
+ <span class="param-type">Number</span>
1852
+
1853
+
1854
+
1855
+ </td>
1856
+
1857
+
1858
+ <td class="attributes">
1859
+
1860
+ &lt;optional><br>
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+ </td>
1867
+
1868
+
1869
+
1870
+ <td class="default">
1871
+
1872
+ 0
1873
+
1874
+ </td>
1875
+
1876
+
1877
+ <td class="description last"></td>
1878
+ </tr>
1879
+
1880
+
1881
+
1882
+ <tr>
1883
+
1884
+ <td class="name"><code>useWebGL</code></td>
1885
+
1886
+
1887
+ <td class="type">
1888
+
1889
+
1890
+ <span class="param-type">Boolean</span>
1891
+
1892
+
1893
+
1894
+ </td>
1895
+
1896
+
1897
+ <td class="attributes">
1898
+
1899
+ &lt;optional><br>
1900
+
1901
+
1902
+
1903
+
1904
+
1905
+ </td>
1906
+
1907
+
1908
+
1909
+ <td class="default">
1910
+
1911
+ glEnable
1912
+
1913
+ </td>
1914
+
1915
+
1916
+ <td class="description last"></td>
1917
+ </tr>
1918
+
1919
+
1920
+ </tbody>
1921
+ </table>
1922
+
1923
+ </div>
1924
+
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+
1931
+ <dl class="details">
1932
+
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+
1958
+ <div class="details-item-container">
1959
+ <dt class="tag-source">Source:</dt>
1960
+ <dd class="tag-source"><ul class="dummy"><li>
1961
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line157">line 157</a>
1962
+ </li></ul></dd>
1963
+ </div>
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+
1970
+
1971
+ </dl>
1972
+
1973
+
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+
1981
+
1982
+
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+
1995
+ <h4 class="name" id=".drawText">
1996
+ <a href="#.drawText">#</a>
1997
+ <span class="type-signature">(static) </span>drawText<span class="signature">(text, pos, size<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, lineWidth<span class="signature-attributes">opt</span>, lineColor<span class="signature-attributes">opt</span>, textAlign<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
1998
+ </h4>
1999
+
2000
+
2001
+
2002
+
2003
+
2004
+ <div class="description">
2005
+ Draw text on overlay canvas in world space
2006
+ </div>
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2017
+ <strong>Parameters:</strong>
2018
+
2019
+
2020
+ <table class="params">
2021
+ <thead>
2022
+ <tr>
2023
+
2024
+ <th>Name</th>
2025
+
2026
+
2027
+ <th>Type</th>
2028
+
2029
+
2030
+ <th>Attributes</th>
2031
+
2032
+
2033
+
2034
+ <th>Default</th>
2035
+
2036
+
2037
+ <th class="last">Description</th>
2038
+ </tr>
2039
+ </thead>
2040
+
2041
+ <tbody>
2042
+
2043
+
2044
+ <tr>
2045
+
2046
+ <td class="name"><code>text</code></td>
2047
+
2048
+
2049
+ <td class="type">
2050
+
2051
+
2052
+ <span class="param-type">String</span>
2053
+
2054
+
2055
+
2056
+ </td>
2057
+
2058
+
2059
+ <td class="attributes">
2060
+
2061
+
2062
+
2063
+
2064
+
2065
+ </td>
2066
+
2067
+
2068
+
2069
+ <td class="default">
2070
+
2071
+ </td>
2072
+
2073
+
2074
+ <td class="description last"></td>
2075
+ </tr>
2076
+
2077
+
2078
+
2079
+ <tr>
2080
+
2081
+ <td class="name"><code>pos</code></td>
2082
+
2083
+
2084
+ <td class="type">
2085
+
2086
+
2087
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2088
+
2089
+
2090
+
2091
+ </td>
2092
+
2093
+
2094
+ <td class="attributes">
2095
+
2096
+
2097
+
2098
+
2099
+
2100
+ </td>
2101
+
2102
+
2103
+
2104
+ <td class="default">
2105
+
2106
+ </td>
2107
+
2108
+
2109
+ <td class="description last"></td>
2110
+ </tr>
2111
+
2112
+
2113
+
2114
+ <tr>
2115
+
2116
+ <td class="name"><code>size</code></td>
2117
+
2118
+
2119
+ <td class="type">
2120
+
2121
+
2122
+ <span class="param-type">Number</span>
2123
+
2124
+
2125
+
2126
+ </td>
2127
+
2128
+
2129
+ <td class="attributes">
2130
+
2131
+ &lt;optional><br>
2132
+
2133
+
2134
+
2135
+
2136
+
2137
+ </td>
2138
+
2139
+
2140
+
2141
+ <td class="default">
2142
+
2143
+ 1
2144
+
2145
+ </td>
2146
+
2147
+
2148
+ <td class="description last"></td>
2149
+ </tr>
2150
+
2151
+
2152
+
2153
+ <tr>
2154
+
2155
+ <td class="name"><code>color</code></td>
2156
+
2157
+
2158
+ <td class="type">
2159
+
2160
+
2161
+ <span class="param-type"><a href="Color.html">Color</a></span>
2162
+
2163
+
2164
+
2165
+ </td>
2166
+
2167
+
2168
+ <td class="attributes">
2169
+
2170
+ &lt;optional><br>
2171
+
2172
+
2173
+
2174
+
2175
+
2176
+ </td>
2177
+
2178
+
2179
+
2180
+ <td class="default">
2181
+
2182
+ new Color(1,1,1)
2183
+
2184
+ </td>
2185
+
2186
+
2187
+ <td class="description last"></td>
2188
+ </tr>
2189
+
2190
+
2191
+
2192
+ <tr>
2193
+
2194
+ <td class="name"><code>lineWidth</code></td>
2195
+
2196
+
2197
+ <td class="type">
2198
+
2199
+
2200
+ <span class="param-type">Number</span>
2201
+
2202
+
2203
+
2204
+ </td>
2205
+
2206
+
2207
+ <td class="attributes">
2208
+
2209
+ &lt;optional><br>
2210
+
2211
+
2212
+
2213
+
2214
+
2215
+ </td>
2216
+
2217
+
2218
+
2219
+ <td class="default">
2220
+
2221
+ 0
2222
+
2223
+ </td>
2224
+
2225
+
2226
+ <td class="description last"></td>
2227
+ </tr>
2228
+
2229
+
2230
+
2231
+ <tr>
2232
+
2233
+ <td class="name"><code>lineColor</code></td>
2234
+
2235
+
2236
+ <td class="type">
2237
+
2238
+
2239
+ <span class="param-type"><a href="Color.html">Color</a></span>
2240
+
2241
+
2242
+
2243
+ </td>
2244
+
2245
+
2246
+ <td class="attributes">
2247
+
2248
+ &lt;optional><br>
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+ </td>
2255
+
2256
+
2257
+
2258
+ <td class="default">
2259
+
2260
+ new Color(0,0,0)
2261
+
2262
+ </td>
2263
+
2264
+
2265
+ <td class="description last"></td>
2266
+ </tr>
2267
+
2268
+
2269
+
2270
+ <tr>
2271
+
2272
+ <td class="name"><code>textAlign</code></td>
2273
+
2274
+
2275
+ <td class="type">
2276
+
2277
+
2278
+ <span class="param-type">String</span>
2279
+
2280
+
2281
+
2282
+ </td>
2283
+
2284
+
2285
+ <td class="attributes">
2286
+
2287
+ &lt;optional><br>
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+ </td>
2294
+
2295
+
2296
+
2297
+ <td class="default">
2298
+
2299
+ 'center'
2300
+
2301
+ </td>
2302
+
2303
+
2304
+ <td class="description last"></td>
2305
+ </tr>
2306
+
2307
+
2308
+ </tbody>
2309
+ </table>
2310
+
2311
+ </div>
2312
+
2313
+
2314
+
2315
+
2316
+
2317
+
2318
+
2319
+ <dl class="details">
2320
+
2321
+
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+
2328
+
2329
+
2330
+
2331
+
2332
+
2333
+
2334
+
2335
+
2336
+
2337
+
2338
+
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+ <div class="details-item-container">
2347
+ <dt class="tag-source">Source:</dt>
2348
+ <dd class="tag-source"><ul class="dummy"><li>
2349
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line206">line 206</a>
2350
+ </li></ul></dd>
2351
+ </div>
2352
+
2353
+
2354
+
2355
+
2356
+
2357
+
2358
+
2359
+ </dl>
2360
+
2361
+
2362
+
2363
+
2364
+
2365
+
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+
2372
+
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+
2381
+
2382
+
2383
+ <h4 class="name" id=".drawTile">
2384
+ <a href="#.drawTile">#</a>
2385
+ <span class="type-signature">(static) </span>drawTile<span class="signature">(pos, size<span class="signature-attributes">opt</span>, tileIndex<span class="signature-attributes">opt</span>, tileSize<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>, mirror<span class="signature-attributes">opt</span>, additiveColor<span class="signature-attributes">opt</span>, useWebGL<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
2386
+ </h4>
2387
+
2388
+
2389
+
2390
+
2391
+
2392
+ <div class="description">
2393
+ Draw textured tile centered in world space, with color applied if using WebGL
2394
+ </div>
2395
+
2396
+
2397
+
2398
+
2399
+
2400
+
2401
+
2402
+
2403
+
2404
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2405
+ <strong>Parameters:</strong>
2406
+
2407
+
2408
+ <table class="params">
2409
+ <thead>
2410
+ <tr>
2411
+
2412
+ <th>Name</th>
2413
+
2414
+
2415
+ <th>Type</th>
2416
+
2417
+
2418
+ <th>Attributes</th>
2419
+
2420
+
2421
+
2422
+ <th>Default</th>
2423
+
2424
+
2425
+ <th class="last">Description</th>
2426
+ </tr>
2427
+ </thead>
2428
+
2429
+ <tbody>
2430
+
2431
+
2432
+ <tr>
2433
+
2434
+ <td class="name"><code>pos</code></td>
2435
+
2436
+
2437
+ <td class="type">
2438
+
2439
+
2440
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2441
+
2442
+
2443
+
2444
+ </td>
2445
+
2446
+
2447
+ <td class="attributes">
2448
+
2449
+
2450
+
2451
+
2452
+
2453
+ </td>
2454
+
2455
+
2456
+
2457
+ <td class="default">
2458
+
2459
+ </td>
2460
+
2461
+
2462
+ <td class="description last">Center of the tile in world space</td>
2463
+ </tr>
2464
+
2465
+
2466
+
2467
+ <tr>
2468
+
2469
+ <td class="name"><code>size</code></td>
2470
+
2471
+
2472
+ <td class="type">
2473
+
2474
+
2475
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2476
+
2477
+
2478
+
2479
+ </td>
2480
+
2481
+
2482
+ <td class="attributes">
2483
+
2484
+ &lt;optional><br>
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+ </td>
2491
+
2492
+
2493
+
2494
+ <td class="default">
2495
+
2496
+ new Vector2(1,1)
2497
+
2498
+ </td>
2499
+
2500
+
2501
+ <td class="description last">Size of the tile in world space, width and height</td>
2502
+ </tr>
2503
+
2504
+
2505
+
2506
+ <tr>
2507
+
2508
+ <td class="name"><code>tileIndex</code></td>
2509
+
2510
+
2511
+ <td class="type">
2512
+
2513
+
2514
+ <span class="param-type">Number</span>
2515
+
2516
+
2517
+
2518
+ </td>
2519
+
2520
+
2521
+ <td class="attributes">
2522
+
2523
+ &lt;optional><br>
2524
+
2525
+
2526
+
2527
+
2528
+
2529
+ </td>
2530
+
2531
+
2532
+
2533
+ <td class="default">
2534
+
2535
+ -1
2536
+
2537
+ </td>
2538
+
2539
+
2540
+ <td class="description last">Tile index to use, negative is untextured</td>
2541
+ </tr>
2542
+
2543
+
2544
+
2545
+ <tr>
2546
+
2547
+ <td class="name"><code>tileSize</code></td>
2548
+
2549
+
2550
+ <td class="type">
2551
+
2552
+
2553
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2554
+
2555
+
2556
+
2557
+ </td>
2558
+
2559
+
2560
+ <td class="attributes">
2561
+
2562
+ &lt;optional><br>
2563
+
2564
+
2565
+
2566
+
2567
+
2568
+ </td>
2569
+
2570
+
2571
+
2572
+ <td class="default">
2573
+
2574
+ tileSizeDefault
2575
+
2576
+ </td>
2577
+
2578
+
2579
+ <td class="description last">Tile size in source pixels</td>
2580
+ </tr>
2581
+
2582
+
2583
+
2584
+ <tr>
2585
+
2586
+ <td class="name"><code>color</code></td>
2587
+
2588
+
2589
+ <td class="type">
2590
+
2591
+
2592
+ <span class="param-type"><a href="Color.html">Color</a></span>
2593
+
2594
+
2595
+
2596
+ </td>
2597
+
2598
+
2599
+ <td class="attributes">
2600
+
2601
+ &lt;optional><br>
2602
+
2603
+
2604
+
2605
+
2606
+
2607
+ </td>
2608
+
2609
+
2610
+
2611
+ <td class="default">
2612
+
2613
+ new Color(1,1,1)
2614
+
2615
+ </td>
2616
+
2617
+
2618
+ <td class="description last">Color to modulate with</td>
2619
+ </tr>
2620
+
2621
+
2622
+
2623
+ <tr>
2624
+
2625
+ <td class="name"><code>angle</code></td>
2626
+
2627
+
2628
+ <td class="type">
2629
+
2630
+
2631
+ <span class="param-type">Number</span>
2632
+
2633
+
2634
+
2635
+ </td>
2636
+
2637
+
2638
+ <td class="attributes">
2639
+
2640
+ &lt;optional><br>
2641
+
2642
+
2643
+
2644
+
2645
+
2646
+ </td>
2647
+
2648
+
2649
+
2650
+ <td class="default">
2651
+
2652
+ 0
2653
+
2654
+ </td>
2655
+
2656
+
2657
+ <td class="description last">Angle to rotate by</td>
2658
+ </tr>
2659
+
2660
+
2661
+
2662
+ <tr>
2663
+
2664
+ <td class="name"><code>mirror</code></td>
2665
+
2666
+
2667
+ <td class="type">
2668
+
2669
+
2670
+ <span class="param-type">Boolean</span>
2671
+
2672
+
2673
+
2674
+ </td>
2675
+
2676
+
2677
+ <td class="attributes">
2678
+
2679
+ &lt;optional><br>
2680
+
2681
+
2682
+
2683
+
2684
+
2685
+ </td>
2686
+
2687
+
2688
+
2689
+ <td class="default">
2690
+
2691
+ 0
2692
+
2693
+ </td>
2694
+
2695
+
2696
+ <td class="description last">If true image is flipped along the Y axis</td>
2697
+ </tr>
2698
+
2699
+
2700
+
2701
+ <tr>
2702
+
2703
+ <td class="name"><code>additiveColor</code></td>
2704
+
2705
+
2706
+ <td class="type">
2707
+
2708
+
2709
+ <span class="param-type"><a href="Color.html">Color</a></span>
2710
+
2711
+
2712
+
2713
+ </td>
2714
+
2715
+
2716
+ <td class="attributes">
2717
+
2718
+ &lt;optional><br>
2719
+
2720
+
2721
+
2722
+
2723
+
2724
+ </td>
2725
+
2726
+
2727
+
2728
+ <td class="default">
2729
+
2730
+ new Color(0,0,0,0)
2731
+
2732
+ </td>
2733
+
2734
+
2735
+ <td class="description last">Additive color to be applied</td>
2736
+ </tr>
2737
+
2738
+
2739
+
2740
+ <tr>
2741
+
2742
+ <td class="name"><code>useWebGL</code></td>
2743
+
2744
+
2745
+ <td class="type">
2746
+
2747
+
2748
+ <span class="param-type">Boolean</span>
2749
+
2750
+
2751
+
2752
+ </td>
2753
+
2754
+
2755
+ <td class="attributes">
2756
+
2757
+ &lt;optional><br>
2758
+
2759
+
2760
+
2761
+
2762
+
2763
+ </td>
2764
+
2765
+
2766
+
2767
+ <td class="default">
2768
+
2769
+ glEnable
2770
+
2771
+ </td>
2772
+
2773
+
2774
+ <td class="description last">Use accelerated WebGL rendering</td>
2775
+ </tr>
2776
+
2777
+
2778
+ </tbody>
2779
+ </table>
2780
+
2781
+ </div>
2782
+
2783
+
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+ <dl class="details">
2790
+
2791
+
2792
+
2793
+
2794
+
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+
2813
+
2814
+
2815
+
2816
+ <div class="details-item-container">
2817
+ <dt class="tag-source">Source:</dt>
2818
+ <dd class="tag-source"><ul class="dummy"><li>
2819
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line67">line 67</a>
2820
+ </li></ul></dd>
2821
+ </div>
2822
+
2823
+
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+ </dl>
2830
+
2831
+
2832
+
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+
2843
+
2844
+
2845
+
2846
+
2847
+
2848
+
2849
+
2850
+
2851
+
2852
+
2853
+ <h4 class="name" id=".drawTileScreenSpace">
2854
+ <a href="#.drawTileScreenSpace">#</a>
2855
+ <span class="type-signature">(static) </span>drawTileScreenSpace<span class="signature">(pos, size<span class="signature-attributes">opt</span>, tileIndex<span class="signature-attributes">opt</span>, tileSize<span class="signature-attributes">opt</span>, color<span class="signature-attributes">opt</span>, angle<span class="signature-attributes">opt</span>, mirror<span class="signature-attributes">opt</span>, additiveColor<span class="signature-attributes">opt</span>, useWebGL<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
2856
+ </h4>
2857
+
2858
+
2859
+
2860
+
2861
+
2862
+ <div class="description">
2863
+ Draw textured tile centered on pos in screen space
2864
+ </div>
2865
+
2866
+
2867
+
2868
+
2869
+
2870
+
2871
+
2872
+
2873
+
2874
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2875
+ <strong>Parameters:</strong>
2876
+
2877
+
2878
+ <table class="params">
2879
+ <thead>
2880
+ <tr>
2881
+
2882
+ <th>Name</th>
2883
+
2884
+
2885
+ <th>Type</th>
2886
+
2887
+
2888
+ <th>Attributes</th>
2889
+
2890
+
2891
+
2892
+ <th>Default</th>
2893
+
2894
+
2895
+ <th class="last">Description</th>
2896
+ </tr>
2897
+ </thead>
2898
+
2899
+ <tbody>
2900
+
2901
+
2902
+ <tr>
2903
+
2904
+ <td class="name"><code>pos</code></td>
2905
+
2906
+
2907
+ <td class="type">
2908
+
2909
+
2910
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2911
+
2912
+
2913
+
2914
+ </td>
2915
+
2916
+
2917
+ <td class="attributes">
2918
+
2919
+
2920
+
2921
+
2922
+
2923
+ </td>
2924
+
2925
+
2926
+
2927
+ <td class="default">
2928
+
2929
+ </td>
2930
+
2931
+
2932
+ <td class="description last">Center of the tile</td>
2933
+ </tr>
2934
+
2935
+
2936
+
2937
+ <tr>
2938
+
2939
+ <td class="name"><code>size</code></td>
2940
+
2941
+
2942
+ <td class="type">
2943
+
2944
+
2945
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2946
+
2947
+
2948
+
2949
+ </td>
2950
+
2951
+
2952
+ <td class="attributes">
2953
+
2954
+ &lt;optional><br>
2955
+
2956
+
2957
+
2958
+
2959
+
2960
+ </td>
2961
+
2962
+
2963
+
2964
+ <td class="default">
2965
+
2966
+ new Vector2(1,1)
2967
+
2968
+ </td>
2969
+
2970
+
2971
+ <td class="description last">Size of the tile</td>
2972
+ </tr>
2973
+
2974
+
2975
+
2976
+ <tr>
2977
+
2978
+ <td class="name"><code>tileIndex</code></td>
2979
+
2980
+
2981
+ <td class="type">
2982
+
2983
+
2984
+ <span class="param-type">Number</span>
2985
+
2986
+
2987
+
2988
+ </td>
2989
+
2990
+
2991
+ <td class="attributes">
2992
+
2993
+ &lt;optional><br>
2994
+
2995
+
2996
+
2997
+
2998
+
2999
+ </td>
3000
+
3001
+
3002
+
3003
+ <td class="default">
3004
+
3005
+ -1
3006
+
3007
+ </td>
3008
+
3009
+
3010
+ <td class="description last">Tile index to use, negative is untextured</td>
3011
+ </tr>
3012
+
3013
+
3014
+
3015
+ <tr>
3016
+
3017
+ <td class="name"><code>tileSize</code></td>
3018
+
3019
+
3020
+ <td class="type">
3021
+
3022
+
3023
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3024
+
3025
+
3026
+
3027
+ </td>
3028
+
3029
+
3030
+ <td class="attributes">
3031
+
3032
+ &lt;optional><br>
3033
+
3034
+
3035
+
3036
+
3037
+
3038
+ </td>
3039
+
3040
+
3041
+
3042
+ <td class="default">
3043
+
3044
+ tileSizeDefault
3045
+
3046
+ </td>
3047
+
3048
+
3049
+ <td class="description last">Tile size in source pixels</td>
3050
+ </tr>
3051
+
3052
+
3053
+
3054
+ <tr>
3055
+
3056
+ <td class="name"><code>color</code></td>
3057
+
3058
+
3059
+ <td class="type">
3060
+
3061
+
3062
+ <span class="param-type"><a href="Color.html">Color</a></span>
3063
+
3064
+
3065
+
3066
+ </td>
3067
+
3068
+
3069
+ <td class="attributes">
3070
+
3071
+ &lt;optional><br>
3072
+
3073
+
3074
+
3075
+
3076
+
3077
+ </td>
3078
+
3079
+
3080
+
3081
+ <td class="default">
3082
+
3083
+ new Color
3084
+
3085
+ </td>
3086
+
3087
+
3088
+ <td class="description last"></td>
3089
+ </tr>
3090
+
3091
+
3092
+
3093
+ <tr>
3094
+
3095
+ <td class="name"><code>angle</code></td>
3096
+
3097
+
3098
+ <td class="type">
3099
+
3100
+
3101
+ <span class="param-type">Number</span>
3102
+
3103
+
3104
+
3105
+ </td>
3106
+
3107
+
3108
+ <td class="attributes">
3109
+
3110
+ &lt;optional><br>
3111
+
3112
+
3113
+
3114
+
3115
+
3116
+ </td>
3117
+
3118
+
3119
+
3120
+ <td class="default">
3121
+
3122
+ 0
3123
+
3124
+ </td>
3125
+
3126
+
3127
+ <td class="description last"></td>
3128
+ </tr>
3129
+
3130
+
3131
+
3132
+ <tr>
3133
+
3134
+ <td class="name"><code>mirror</code></td>
3135
+
3136
+
3137
+ <td class="type">
3138
+
3139
+
3140
+ <span class="param-type">Boolean</span>
3141
+
3142
+
3143
+
3144
+ </td>
3145
+
3146
+
3147
+ <td class="attributes">
3148
+
3149
+ &lt;optional><br>
3150
+
3151
+
3152
+
3153
+
3154
+
3155
+ </td>
3156
+
3157
+
3158
+
3159
+ <td class="default">
3160
+
3161
+ 0
3162
+
3163
+ </td>
3164
+
3165
+
3166
+ <td class="description last"></td>
3167
+ </tr>
3168
+
3169
+
3170
+
3171
+ <tr>
3172
+
3173
+ <td class="name"><code>additiveColor</code></td>
3174
+
3175
+
3176
+ <td class="type">
3177
+
3178
+
3179
+ <span class="param-type"><a href="Color.html">Color</a></span>
3180
+
3181
+
3182
+
3183
+ </td>
3184
+
3185
+
3186
+ <td class="attributes">
3187
+
3188
+ &lt;optional><br>
3189
+
3190
+
3191
+
3192
+
3193
+
3194
+ </td>
3195
+
3196
+
3197
+
3198
+ <td class="default">
3199
+
3200
+ new Color(0,0,0,0)
3201
+
3202
+ </td>
3203
+
3204
+
3205
+ <td class="description last"></td>
3206
+ </tr>
3207
+
3208
+
3209
+
3210
+ <tr>
3211
+
3212
+ <td class="name"><code>useWebGL</code></td>
3213
+
3214
+
3215
+ <td class="type">
3216
+
3217
+
3218
+ <span class="param-type">Boolean</span>
3219
+
3220
+
3221
+
3222
+ </td>
3223
+
3224
+
3225
+ <td class="attributes">
3226
+
3227
+ &lt;optional><br>
3228
+
3229
+
3230
+
3231
+
3232
+
3233
+ </td>
3234
+
3235
+
3236
+
3237
+ <td class="default">
3238
+
3239
+ glEnable
3240
+
3241
+ </td>
3242
+
3243
+
3244
+ <td class="description last"></td>
3245
+ </tr>
3246
+
3247
+
3248
+ </tbody>
3249
+ </table>
3250
+
3251
+ </div>
3252
+
3253
+
3254
+
3255
+
3256
+
3257
+
3258
+
3259
+ <dl class="details">
3260
+
3261
+
3262
+
3263
+
3264
+
3265
+
3266
+
3267
+
3268
+
3269
+
3270
+
3271
+
3272
+
3273
+
3274
+
3275
+
3276
+
3277
+
3278
+
3279
+
3280
+
3281
+
3282
+
3283
+
3284
+
3285
+
3286
+ <div class="details-item-container">
3287
+ <dt class="tag-source">Source:</dt>
3288
+ <dd class="tag-source"><ul class="dummy"><li>
3289
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line145">line 145</a>
3290
+ </li></ul></dd>
3291
+ </div>
3292
+
3293
+
3294
+
3295
+
3296
+
3297
+
3298
+
3299
+ </dl>
3300
+
3301
+
3302
+
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+
3310
+
3311
+
3312
+
3313
+
3314
+
3315
+
3316
+
3317
+
3318
+
3319
+
3320
+
3321
+
3322
+
3323
+ <h4 class="name" id=".isFullscreen">
3324
+ <a href="#.isFullscreen">#</a>
3325
+ <span class="type-signature">(static) </span>isFullscreen<span class="signature">()</span><span class="type-signature"> &rarr; {Boolean}</span>
3326
+ </h4>
3327
+
3328
+
3329
+
3330
+
3331
+
3332
+ <div class="description">
3333
+ Returns true if fullscreen mode is active
3334
+ </div>
3335
+
3336
+
3337
+
3338
+
3339
+
3340
+
3341
+
3342
+
3343
+
3344
+
3345
+
3346
+
3347
+
3348
+
3349
+
3350
+ <dl class="details">
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+
3357
+
3358
+
3359
+
3360
+
3361
+
3362
+
3363
+
3364
+
3365
+
3366
+
3367
+
3368
+
3369
+
3370
+
3371
+
3372
+
3373
+
3374
+
3375
+
3376
+
3377
+ <div class="details-item-container">
3378
+ <dt class="tag-source">Source:</dt>
3379
+ <dd class="tag-source"><ul class="dummy"><li>
3380
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line240">line 240</a>
3381
+ </li></ul></dd>
3382
+ </div>
3383
+
3384
+
3385
+
3386
+
3387
+
3388
+
3389
+
3390
+ </dl>
3391
+
3392
+
3393
+
3394
+
3395
+
3396
+
3397
+
3398
+
3399
+
3400
+
3401
+
3402
+
3403
+
3404
+
3405
+
3406
+ <div class="method-member-container mt-20">
3407
+ <strong>Returns:</strong>
3408
+
3409
+
3410
+
3411
+
3412
+ <dl class="param-type">
3413
+ <dt>
3414
+ Type
3415
+ </dt>
3416
+ <dd>
3417
+
3418
+ <span class="param-type">Boolean</span>
3419
+
3420
+
3421
+ </dd>
3422
+ </dl>
3423
+
3424
+
3425
+ </div>
3426
+
3427
+
3428
+
3429
+
3430
+
3431
+
3432
+
3433
+
3434
+
3435
+ <h4 class="name" id=".screenToWorld">
3436
+ <a href="#.screenToWorld">#</a>
3437
+ <span class="type-signature">(static) </span>screenToWorld<span class="signature">(screenPos)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3438
+ </h4>
3439
+
3440
+
3441
+
3442
+
3443
+
3444
+ <div class="description">
3445
+ Convert from screen to world space coordinates
3446
+ </div>
3447
+
3448
+
3449
+
3450
+
3451
+
3452
+
3453
+
3454
+
3455
+
3456
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3457
+ <strong>Parameters:</strong>
3458
+
3459
+
3460
+ <table class="params">
3461
+ <thead>
3462
+ <tr>
3463
+
3464
+ <th>Name</th>
3465
+
3466
+
3467
+ <th>Type</th>
3468
+
3469
+
3470
+
3471
+
3472
+
3473
+ <th class="last">Description</th>
3474
+ </tr>
3475
+ </thead>
3476
+
3477
+ <tbody>
3478
+
3479
+
3480
+ <tr>
3481
+
3482
+ <td class="name"><code>screenPos</code></td>
3483
+
3484
+
3485
+ <td class="type">
3486
+
3487
+
3488
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3489
+
3490
+
3491
+
3492
+ </td>
3493
+
3494
+
3495
+
3496
+
3497
+
3498
+ <td class="description last"></td>
3499
+ </tr>
3500
+
3501
+
3502
+ </tbody>
3503
+ </table>
3504
+
3505
+ </div>
3506
+
3507
+
3508
+
3509
+
3510
+
3511
+
3512
+
3513
+ <dl class="details">
3514
+
3515
+
3516
+
3517
+
3518
+
3519
+
3520
+
3521
+
3522
+
3523
+
3524
+
3525
+
3526
+
3527
+
3528
+
3529
+
3530
+
3531
+
3532
+
3533
+
3534
+
3535
+
3536
+
3537
+
3538
+
3539
+
3540
+ <div class="details-item-container">
3541
+ <dt class="tag-source">Source:</dt>
3542
+ <dd class="tag-source"><ul class="dummy"><li>
3543
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line46">line 46</a>
3544
+ </li></ul></dd>
3545
+ </div>
3546
+
3547
+
3548
+
3549
+
3550
+
3551
+
3552
+
3553
+ </dl>
3554
+
3555
+
3556
+
3557
+
3558
+
3559
+
3560
+
3561
+
3562
+
3563
+
3564
+
3565
+
3566
+
3567
+
3568
+
3569
+ <div class="method-member-container mt-20">
3570
+ <strong>Returns:</strong>
3571
+
3572
+
3573
+
3574
+
3575
+ <dl class="param-type">
3576
+ <dt>
3577
+ Type
3578
+ </dt>
3579
+ <dd>
3580
+
3581
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3582
+
3583
+
3584
+ </dd>
3585
+ </dl>
3586
+
3587
+
3588
+ </div>
3589
+
3590
+
3591
+
3592
+
3593
+
3594
+
3595
+
3596
+
3597
+
3598
+ <h4 class="name" id=".setBlendMode">
3599
+ <a href="#.setBlendMode">#</a>
3600
+ <span class="type-signature">(static) </span>setBlendMode<span class="signature">(additive<span class="signature-attributes">opt</span>, useWebGL<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
3601
+ </h4>
3602
+
3603
+
3604
+
3605
+
3606
+
3607
+ <div class="description">
3608
+ Enable normal or additive blend mode
3609
+ </div>
3610
+
3611
+
3612
+
3613
+
3614
+
3615
+
3616
+
3617
+
3618
+
3619
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3620
+ <strong>Parameters:</strong>
3621
+
3622
+
3623
+ <table class="params">
3624
+ <thead>
3625
+ <tr>
3626
+
3627
+ <th>Name</th>
3628
+
3629
+
3630
+ <th>Type</th>
3631
+
3632
+
3633
+ <th>Attributes</th>
3634
+
3635
+
3636
+
3637
+ <th>Default</th>
3638
+
3639
+
3640
+ <th class="last">Description</th>
3641
+ </tr>
3642
+ </thead>
3643
+
3644
+ <tbody>
3645
+
3646
+
3647
+ <tr>
3648
+
3649
+ <td class="name"><code>additive</code></td>
3650
+
3651
+
3652
+ <td class="type">
3653
+
3654
+
3655
+ <span class="param-type">Boolean</span>
3656
+
3657
+
3658
+
3659
+ </td>
3660
+
3661
+
3662
+ <td class="attributes">
3663
+
3664
+ &lt;optional><br>
3665
+
3666
+
3667
+
3668
+
3669
+
3670
+ </td>
3671
+
3672
+
3673
+
3674
+ <td class="default">
3675
+
3676
+ 0
3677
+
3678
+ </td>
3679
+
3680
+
3681
+ <td class="description last"></td>
3682
+ </tr>
3683
+
3684
+
3685
+
3686
+ <tr>
3687
+
3688
+ <td class="name"><code>useWebGL</code></td>
3689
+
3690
+
3691
+ <td class="type">
3692
+
3693
+
3694
+ <span class="param-type">Boolean</span>
3695
+
3696
+
3697
+
3698
+ </td>
3699
+
3700
+
3701
+ <td class="attributes">
3702
+
3703
+ &lt;optional><br>
3704
+
3705
+
3706
+
3707
+
3708
+
3709
+ </td>
3710
+
3711
+
3712
+
3713
+ <td class="default">
3714
+
3715
+ glEnable
3716
+
3717
+ </td>
3718
+
3719
+
3720
+ <td class="description last"></td>
3721
+ </tr>
3722
+
3723
+
3724
+ </tbody>
3725
+ </table>
3726
+
3727
+ </div>
3728
+
3729
+
3730
+
3731
+
3732
+
3733
+
3734
+
3735
+ <dl class="details">
3736
+
3737
+
3738
+
3739
+
3740
+
3741
+
3742
+
3743
+
3744
+
3745
+
3746
+
3747
+
3748
+
3749
+
3750
+
3751
+
3752
+
3753
+
3754
+
3755
+
3756
+
3757
+
3758
+
3759
+
3760
+
3761
+
3762
+ <div class="details-item-container">
3763
+ <dt class="tag-source">Source:</dt>
3764
+ <dd class="tag-source"><ul class="dummy"><li>
3765
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line226">line 226</a>
3766
+ </li></ul></dd>
3767
+ </div>
3768
+
3769
+
3770
+
3771
+
3772
+
3773
+
3774
+
3775
+ </dl>
3776
+
3777
+
3778
+
3779
+
3780
+
3781
+
3782
+
3783
+
3784
+
3785
+
3786
+
3787
+
3788
+
3789
+
3790
+
3791
+
3792
+
3793
+
3794
+
3795
+
3796
+
3797
+
3798
+
3799
+ <h4 class="name" id=".toggleFullscreen">
3800
+ <a href="#.toggleFullscreen">#</a>
3801
+ <span class="type-signature">(static) </span>toggleFullscreen<span class="signature">()</span><span class="type-signature"></span>
3802
+ </h4>
3803
+
3804
+
3805
+
3806
+
3807
+
3808
+ <div class="description">
3809
+ Toggle fullsceen mode
3810
+ </div>
3811
+
3812
+
3813
+
3814
+
3815
+
3816
+
3817
+
3818
+
3819
+
3820
+
3821
+
3822
+
3823
+
3824
+
3825
+
3826
+ <dl class="details">
3827
+
3828
+
3829
+
3830
+
3831
+
3832
+
3833
+
3834
+
3835
+
3836
+
3837
+
3838
+
3839
+
3840
+
3841
+
3842
+
3843
+
3844
+
3845
+
3846
+
3847
+
3848
+
3849
+
3850
+
3851
+
3852
+
3853
+ <div class="details-item-container">
3854
+ <dt class="tag-source">Source:</dt>
3855
+ <dd class="tag-source"><ul class="dummy"><li>
3856
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line244">line 244</a>
3857
+ </li></ul></dd>
3858
+ </div>
3859
+
3860
+
3861
+
3862
+
3863
+
3864
+
3865
+
3866
+ </dl>
3867
+
3868
+
3869
+
3870
+
3871
+
3872
+
3873
+
3874
+
3875
+
3876
+
3877
+
3878
+
3879
+
3880
+
3881
+
3882
+
3883
+
3884
+
3885
+
3886
+
3887
+
3888
+
3889
+
3890
+ <h4 class="name" id=".worldToScreen">
3891
+ <a href="#.worldToScreen">#</a>
3892
+ <span class="type-signature">(static) </span>worldToScreen<span class="signature">(worldPos)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3893
+ </h4>
3894
+
3895
+
3896
+
3897
+
3898
+
3899
+ <div class="description">
3900
+ Convert from world to screen space coordinates
3901
+ </div>
3902
+
3903
+
3904
+
3905
+
3906
+
3907
+
3908
+
3909
+
3910
+
3911
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3912
+ <strong>Parameters:</strong>
3913
+
3914
+
3915
+ <table class="params">
3916
+ <thead>
3917
+ <tr>
3918
+
3919
+ <th>Name</th>
3920
+
3921
+
3922
+ <th>Type</th>
3923
+
3924
+
3925
+
3926
+
3927
+
3928
+ <th class="last">Description</th>
3929
+ </tr>
3930
+ </thead>
3931
+
3932
+ <tbody>
3933
+
3934
+
3935
+ <tr>
3936
+
3937
+ <td class="name"><code>worldPos</code></td>
3938
+
3939
+
3940
+ <td class="type">
3941
+
3942
+
3943
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3944
+
3945
+
3946
+
3947
+ </td>
3948
+
3949
+
3950
+
3951
+
3952
+
3953
+ <td class="description last"></td>
3954
+ </tr>
3955
+
3956
+
3957
+ </tbody>
3958
+ </table>
3959
+
3960
+ </div>
3961
+
3962
+
3963
+
3964
+
3965
+
3966
+
3967
+
3968
+ <dl class="details">
3969
+
3970
+
3971
+
3972
+
3973
+
3974
+
3975
+
3976
+
3977
+
3978
+
3979
+
3980
+
3981
+
3982
+
3983
+
3984
+
3985
+
3986
+
3987
+
3988
+
3989
+
3990
+
3991
+
3992
+
3993
+
3994
+
3995
+ <div class="details-item-container">
3996
+ <dt class="tag-source">Source:</dt>
3997
+ <dd class="tag-source"><ul class="dummy"><li>
3998
+ <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line53">line 53</a>
3999
+ </li></ul></dd>
4000
+ </div>
4001
+
4002
+
4003
+
4004
+
4005
+
4006
+
4007
+
4008
+ </dl>
4009
+
4010
+
4011
+
4012
+
4013
+
4014
+
4015
+
4016
+
4017
+
4018
+
4019
+
4020
+
4021
+
4022
+
4023
+
4024
+ <div class="method-member-container mt-20">
4025
+ <strong>Returns:</strong>
4026
+
4027
+
4028
+
4029
+
4030
+ <dl class="param-type">
4031
+ <dt>
4032
+ Type
4033
+ </dt>
4034
+ <dd>
4035
+
4036
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
4037
+
4038
+
4039
+ </dd>
4040
+ </dl>
4041
+
4042
+
4043
+ </div>
4044
+
4045
+
4046
+
4047
+
4048
+
4049
+
4050
+
4051
+
4052
+
4053
+
4054
+ </article>
4055
+
4056
+ </section>
4057
+
4058
+
4059
+
4060
+
4061
+ </div>
4062
+
4063
+ <footer class="footer" id="footer">
4064
+ <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
4065
+ </footer>
4066
+
4067
+ <script src="scripts/third-party/prettify.js"></script>
4068
+ <script src="scripts/third-party/lang-css.js"></script>
4069
+ <script type="text/javascript" src="scripts/misc.js"></script>
4070
+
4071
+ <script>prettyPrint();</script>
4072
+ <script src="scripts/linenumber.js"></script>
4073
+ <script src="scripts/fix-code-block.js"></script>
4074
+ <script src="scripts/fix-navbar.js"></script>
4075
+
4076
+ <script src="scripts/search.js"></script>
4077
+ <script src="scripts/third-party/fuse.js"></script>
4078
+ <script>
4079
+ var list = [{"title":"Color","link":"<a href=\"Color.html\">Color</a>"},{"title":"Color#add","link":"<a href=\"Color.html#add\">Color &rtrif; add</a>"},{"title":"Color#clamp","link":"<a href=\"Color.html#clamp\">Color &rtrif; clamp</a>"},{"title":"Color#copy","link":"<a href=\"Color.html#copy\">Color &rtrif; copy</a>"},{"title":"Color#divide","link":"<a href=\"Color.html#divide\">Color &rtrif; divide</a>"},{"title":"Color#lerp","link":"<a href=\"Color.html#lerp\">Color &rtrif; lerp</a>"},{"title":"Color#multiply","link":"<a href=\"Color.html#multiply\">Color &rtrif; multiply</a>"},{"title":"Color#mutate","link":"<a href=\"Color.html#mutate\">Color &rtrif; mutate</a>"},{"title":"Color#rgba","link":"<a href=\"Color.html#rgba\">Color &rtrif; rgba</a>"},{"title":"Color#rgbaInt","link":"<a href=\"Color.html#rgbaInt\">Color &rtrif; rgbaInt</a>"},{"title":"Color#scale","link":"<a href=\"Color.html#scale\">Color &rtrif; scale</a>"},{"title":"Color#setHSLA","link":"<a href=\"Color.html#setHSLA\">Color &rtrif; setHSLA</a>"},{"title":"Color#subtract","link":"<a href=\"Color.html#subtract\">Color &rtrif; subtract</a>"},{"title":"EngineObject","link":"<a href=\"EngineObject.html\">EngineObject</a>"},{"title":"EngineObject#addChild","link":"<a href=\"EngineObject.html#addChild\">EngineObject &rtrif; addChild</a>"},{"title":"EngineObject#applyAcceleration","link":"<a href=\"EngineObject.html#applyAcceleration\">EngineObject &rtrif; applyAcceleration</a>"},{"title":"EngineObject#applyForce","link":"<a href=\"EngineObject.html#applyForce\">EngineObject &rtrif; applyForce</a>"},{"title":"EngineObject#collideWithObject","link":"<a href=\"EngineObject.html#collideWithObject\">EngineObject &rtrif; collideWithObject</a>"},{"title":"EngineObject#collideWithTile","link":"<a href=\"EngineObject.html#collideWithTile\">EngineObject &rtrif; collideWithTile</a>"},{"title":"EngineObject#collideWithTileRaycast","link":"<a href=\"EngineObject.html#collideWithTileRaycast\">EngineObject &rtrif; collideWithTileRaycast</a>"},{"title":"EngineObject#destroy","link":"<a href=\"EngineObject.html#destroy\">EngineObject &rtrif; destroy</a>"},{"title":"EngineObject#getAliveTime","link":"<a href=\"EngineObject.html#getAliveTime\">EngineObject &rtrif; getAliveTime</a>"},{"title":"EngineObject#getMirrorSign","link":"<a href=\"EngineObject.html#getMirrorSign\">EngineObject &rtrif; getMirrorSign</a>"},{"title":"EngineObject#removeChild","link":"<a href=\"EngineObject.html#removeChild\">EngineObject &rtrif; removeChild</a>"},{"title":"EngineObject#render","link":"<a href=\"EngineObject.html#render\">EngineObject &rtrif; render</a>"},{"title":"EngineObject#setCollision","link":"<a href=\"EngineObject.html#setCollision\">EngineObject &rtrif; setCollision</a>"},{"title":"EngineObject#update","link":"<a href=\"EngineObject.html#update\">EngineObject &rtrif; update</a>"},{"title":"Medal","link":"<a href=\"Medal.html\">Medal</a>"},{"title":"Medal#render","link":"<a href=\"Medal.html#render\">Medal &rtrif; render</a>"},{"title":"Medal#renderIcon","link":"<a href=\"Medal.html#renderIcon\">Medal &rtrif; renderIcon</a>"},{"title":"Medal#unlock","link":"<a href=\"Medal.html#unlock\">Medal &rtrif; unlock</a>"},{"title":"Music","link":"<a href=\"Music.html\">Music</a>"},{"title":"Music#play","link":"<a href=\"Music.html#play\">Music &rtrif; play</a>"},{"title":"Newgrounds","link":"<a href=\"Newgrounds.html\">Newgrounds</a>"},{"title":"Newgrounds#call","link":"<a href=\"Newgrounds.html#call\">Newgrounds &rtrif; call</a>"},{"title":"Newgrounds#getScores","link":"<a href=\"Newgrounds.html#getScores\">Newgrounds &rtrif; getScores</a>"},{"title":"Newgrounds#logView","link":"<a href=\"Newgrounds.html#logView\">Newgrounds &rtrif; logView</a>"},{"title":"Newgrounds#postScore","link":"<a href=\"Newgrounds.html#postScore\">Newgrounds &rtrif; postScore</a>"},{"title":"Newgrounds#unlockMedal","link":"<a href=\"Newgrounds.html#unlockMedal\">Newgrounds &rtrif; unlockMedal</a>"},{"title":"Particle","link":"<a href=\"Particle.html\">Particle</a>"},{"title":"Particle#addChild","link":"<a href=\"Particle.html#addChild\">Particle &rtrif; addChild</a>"},{"title":"Particle#applyAcceleration","link":"<a href=\"Particle.html#applyAcceleration\">Particle &rtrif; applyAcceleration</a>"},{"title":"Particle#applyForce","link":"<a href=\"Particle.html#applyForce\">Particle &rtrif; applyForce</a>"},{"title":"Particle#collideWithObject","link":"<a href=\"Particle.html#collideWithObject\">Particle &rtrif; collideWithObject</a>"},{"title":"Particle#collideWithTile","link":"<a href=\"Particle.html#collideWithTile\">Particle &rtrif; collideWithTile</a>"},{"title":"Particle#collideWithTileRaycast","link":"<a href=\"Particle.html#collideWithTileRaycast\">Particle &rtrif; collideWithTileRaycast</a>"},{"title":"Particle#destroy","link":"<a href=\"Particle.html#destroy\">Particle &rtrif; destroy</a>"},{"title":"Particle#getAliveTime","link":"<a href=\"Particle.html#getAliveTime\">Particle &rtrif; getAliveTime</a>"},{"title":"Particle#getMirrorSign","link":"<a href=\"Particle.html#getMirrorSign\">Particle &rtrif; getMirrorSign</a>"},{"title":"Particle#removeChild","link":"<a href=\"Particle.html#removeChild\">Particle &rtrif; removeChild</a>"},{"title":"Particle#render","link":"<a href=\"Particle.html#render\">Particle &rtrif; render</a>"},{"title":"Particle#setCollision","link":"<a href=\"Particle.html#setCollision\">Particle &rtrif; setCollision</a>"},{"title":"Particle#update","link":"<a href=\"Particle.html#update\">Particle &rtrif; update</a>"},{"title":"ParticleEmitter","link":"<a href=\"ParticleEmitter.html\">ParticleEmitter</a>"},{"title":"ParticleEmitter#addChild","link":"<a href=\"ParticleEmitter.html#addChild\">ParticleEmitter &rtrif; addChild</a>"},{"title":"ParticleEmitter#applyAcceleration","link":"<a href=\"ParticleEmitter.html#applyAcceleration\">ParticleEmitter &rtrif; applyAcceleration</a>"},{"title":"ParticleEmitter#applyForce","link":"<a href=\"ParticleEmitter.html#applyForce\">ParticleEmitter &rtrif; applyForce</a>"},{"title":"ParticleEmitter#collideWithObject","link":"<a href=\"ParticleEmitter.html#collideWithObject\">ParticleEmitter &rtrif; collideWithObject</a>"},{"title":"ParticleEmitter#collideWithTile","link":"<a href=\"ParticleEmitter.html#collideWithTile\">ParticleEmitter &rtrif; collideWithTile</a>"},{"title":"ParticleEmitter#collideWithTileRaycast","link":"<a href=\"ParticleEmitter.html#collideWithTileRaycast\">ParticleEmitter &rtrif; collideWithTileRaycast</a>"},{"title":"ParticleEmitter#destroy","link":"<a href=\"ParticleEmitter.html#destroy\">ParticleEmitter &rtrif; destroy</a>"},{"title":"ParticleEmitter#emitParticle","link":"<a href=\"ParticleEmitter.html#emitParticle\">ParticleEmitter &rtrif; emitParticle</a>"},{"title":"ParticleEmitter#getAliveTime","link":"<a href=\"ParticleEmitter.html#getAliveTime\">ParticleEmitter &rtrif; getAliveTime</a>"},{"title":"ParticleEmitter#getMirrorSign","link":"<a href=\"ParticleEmitter.html#getMirrorSign\">ParticleEmitter &rtrif; getMirrorSign</a>"},{"title":"ParticleEmitter#removeChild","link":"<a href=\"ParticleEmitter.html#removeChild\">ParticleEmitter &rtrif; removeChild</a>"},{"title":"ParticleEmitter#render","link":"<a href=\"ParticleEmitter.html#render\">ParticleEmitter &rtrif; render</a>"},{"title":"ParticleEmitter#setCollision","link":"<a href=\"ParticleEmitter.html#setCollision\">ParticleEmitter &rtrif; setCollision</a>"},{"title":"ParticleEmitter#update","link":"<a href=\"ParticleEmitter.html#update\">ParticleEmitter &rtrif; update</a>"},{"title":"Sound","link":"<a href=\"Sound.html\">Sound</a>"},{"title":"Sound#play","link":"<a href=\"Sound.html#play\">Sound &rtrif; play</a>"},{"title":"Sound#playNote","link":"<a href=\"Sound.html#playNote\">Sound &rtrif; playNote</a>"},{"title":"TileLayer","link":"<a href=\"TileLayer.html\">TileLayer</a>"},{"title":"TileLayer#addChild","link":"<a href=\"TileLayer.html#addChild\">TileLayer &rtrif; addChild</a>"},{"title":"TileLayer#applyAcceleration","link":"<a href=\"TileLayer.html#applyAcceleration\">TileLayer &rtrif; applyAcceleration</a>"},{"title":"TileLayer#applyForce","link":"<a href=\"TileLayer.html#applyForce\">TileLayer &rtrif; applyForce</a>"},{"title":"TileLayer#collideWithObject","link":"<a href=\"TileLayer.html#collideWithObject\">TileLayer &rtrif; collideWithObject</a>"},{"title":"TileLayer#collideWithTile","link":"<a href=\"TileLayer.html#collideWithTile\">TileLayer &rtrif; collideWithTile</a>"},{"title":"TileLayer#collideWithTileRaycast","link":"<a href=\"TileLayer.html#collideWithTileRaycast\">TileLayer &rtrif; collideWithTileRaycast</a>"},{"title":"TileLayer#destroy","link":"<a href=\"TileLayer.html#destroy\">TileLayer &rtrif; destroy</a>"},{"title":"TileLayer#drawAllTileData","link":"<a href=\"TileLayer.html#drawAllTileData\">TileLayer &rtrif; drawAllTileData</a>"},{"title":"TileLayer#drawCanvas2D","link":"<a href=\"TileLayer.html#drawCanvas2D\">TileLayer &rtrif; drawCanvas2D</a>"},{"title":"TileLayer#drawRect","link":"<a href=\"TileLayer.html#drawRect\">TileLayer &rtrif; drawRect</a>"},{"title":"TileLayer#drawTile","link":"<a href=\"TileLayer.html#drawTile\">TileLayer &rtrif; drawTile</a>"},{"title":"TileLayer#drawTileData","link":"<a href=\"TileLayer.html#drawTileData\">TileLayer &rtrif; drawTileData</a>"},{"title":"TileLayer#getAliveTime","link":"<a href=\"TileLayer.html#getAliveTime\">TileLayer &rtrif; getAliveTime</a>"},{"title":"TileLayer#getData","link":"<a href=\"TileLayer.html#getData\">TileLayer &rtrif; getData</a>"},{"title":"TileLayer#getMirrorSign","link":"<a href=\"TileLayer.html#getMirrorSign\">TileLayer &rtrif; getMirrorSign</a>"},{"title":"TileLayer#redraw","link":"<a href=\"TileLayer.html#redraw\">TileLayer &rtrif; redraw</a>"},{"title":"TileLayer#redrawEnd","link":"<a href=\"TileLayer.html#redrawEnd\">TileLayer &rtrif; redrawEnd</a>"},{"title":"TileLayer#redrawStart","link":"<a href=\"TileLayer.html#redrawStart\">TileLayer &rtrif; redrawStart</a>"},{"title":"TileLayer#removeChild","link":"<a href=\"TileLayer.html#removeChild\">TileLayer &rtrif; removeChild</a>"},{"title":"TileLayer#render","link":"<a href=\"TileLayer.html#render\">TileLayer &rtrif; render</a>"},{"title":"TileLayer#setCollision","link":"<a href=\"TileLayer.html#setCollision\">TileLayer &rtrif; setCollision</a>"},{"title":"TileLayer#setData","link":"<a href=\"TileLayer.html#setData\">TileLayer &rtrif; setData</a>"},{"title":"TileLayer#update","link":"<a href=\"TileLayer.html#update\">TileLayer &rtrif; update</a>"},{"title":"TileLayerData","link":"<a href=\"TileLayerData.html\">TileLayerData</a>"},{"title":"TileLayerData#clear","link":"<a href=\"TileLayerData.html#clear\">TileLayerData &rtrif; clear</a>"},{"title":"Timer","link":"<a href=\"Timer.html\">Timer</a>"},{"title":"Timer#active","link":"<a href=\"Timer.html#active\">Timer &rtrif; active</a>"},{"title":"Timer#elapsed","link":"<a href=\"Timer.html#elapsed\">Timer &rtrif; elapsed</a>"},{"title":"Timer#get","link":"<a href=\"Timer.html#get\">Timer &rtrif; get</a>"},{"title":"Timer#getPercent","link":"<a href=\"Timer.html#getPercent\">Timer &rtrif; getPercent</a>"},{"title":"Timer#isSet","link":"<a href=\"Timer.html#isSet\">Timer &rtrif; isSet</a>"},{"title":"Timer#set","link":"<a href=\"Timer.html#set\">Timer &rtrif; set</a>"},{"title":"Timer#unset","link":"<a href=\"Timer.html#unset\">Timer &rtrif; unset</a>"},{"title":"Vector2","link":"<a href=\"Vector2.html\">Vector2</a>"},{"title":"Vector2#add","link":"<a href=\"Vector2.html#add\">Vector2 &rtrif; add</a>"},{"title":"Vector2#angle","link":"<a href=\"Vector2.html#angle\">Vector2 &rtrif; angle</a>"},{"title":"Vector2#area","link":"<a href=\"Vector2.html#area\">Vector2 &rtrif; area</a>"},{"title":"Vector2#arrayCheck","link":"<a href=\"Vector2.html#arrayCheck\">Vector2 &rtrif; arrayCheck</a>"},{"title":"Vector2#clampLength","link":"<a href=\"Vector2.html#clampLength\">Vector2 &rtrif; clampLength</a>"},{"title":"Vector2#copy","link":"<a href=\"Vector2.html#copy\">Vector2 &rtrif; copy</a>"},{"title":"Vector2#cross","link":"<a href=\"Vector2.html#cross\">Vector2 &rtrif; cross</a>"},{"title":"Vector2#direction","link":"<a href=\"Vector2.html#direction\">Vector2 &rtrif; direction</a>"},{"title":"Vector2#distance","link":"<a href=\"Vector2.html#distance\">Vector2 &rtrif; distance</a>"},{"title":"Vector2#distanceSquared","link":"<a href=\"Vector2.html#distanceSquared\">Vector2 &rtrif; distanceSquared</a>"},{"title":"Vector2#divide","link":"<a href=\"Vector2.html#divide\">Vector2 &rtrif; divide</a>"},{"title":"Vector2#dot","link":"<a href=\"Vector2.html#dot\">Vector2 &rtrif; dot</a>"},{"title":"Vector2#flip","link":"<a href=\"Vector2.html#flip\">Vector2 &rtrif; flip</a>"},{"title":"Vector2#floor","link":"<a href=\"Vector2.html#floor\">Vector2 &rtrif; floor</a>"},{"title":"Vector2#invert","link":"<a href=\"Vector2.html#invert\">Vector2 &rtrif; invert</a>"},{"title":"Vector2#length","link":"<a href=\"Vector2.html#length\">Vector2 &rtrif; length</a>"},{"title":"Vector2#lengthSquared","link":"<a href=\"Vector2.html#lengthSquared\">Vector2 &rtrif; lengthSquared</a>"},{"title":"Vector2#lerp","link":"<a href=\"Vector2.html#lerp\">Vector2 &rtrif; lerp</a>"},{"title":"Vector2#multiply","link":"<a href=\"Vector2.html#multiply\">Vector2 &rtrif; multiply</a>"},{"title":"Vector2#normalize","link":"<a href=\"Vector2.html#normalize\">Vector2 &rtrif; normalize</a>"},{"title":"Vector2#rotate","link":"<a href=\"Vector2.html#rotate\">Vector2 &rtrif; rotate</a>"},{"title":"Vector2#scale","link":"<a href=\"Vector2.html#scale\">Vector2 &rtrif; scale</a>"},{"title":"Vector2#setAngle","link":"<a href=\"Vector2.html#setAngle\">Vector2 &rtrif; setAngle</a>"},{"title":"Vector2#subtract","link":"<a href=\"Vector2.html#subtract\">Vector2 &rtrif; subtract</a>"},{"title":"Audio","link":"<a href=\"Audio.html\">Audio</a>"},{"title":"Audio.getNoteFrequency","link":"<a href=\"Audio.html#.getNoteFrequency\">Audio.getNoteFrequency &rtrif; undefined</a>"},{"title":"Audio.playAudioFile","link":"<a href=\"Audio.html#.playAudioFile\">Audio.playAudioFile &rtrif; undefined</a>"},{"title":"Audio.playSamples","link":"<a href=\"Audio.html#.playSamples\">Audio.playSamples &rtrif; undefined</a>"},{"title":"Audio.speak","link":"<a href=\"Audio.html#.speak\">Audio.speak &rtrif; undefined</a>"},{"title":"Audio.stopSpeech","link":"<a href=\"Audio.html#.stopSpeech\">Audio.stopSpeech &rtrif; undefined</a>"},{"title":"Audio.zzfx","link":"<a href=\"Audio.html#.zzfx\">Audio.zzfx &rtrif; undefined</a>"},{"title":"Audio.zzfxG","link":"<a href=\"Audio.html#.zzfxG\">Audio.zzfxG &rtrif; undefined</a>"},{"title":"Audio.zzfxM","link":"<a href=\"Audio.html#.zzfxM\">Audio.zzfxM &rtrif; undefined</a>"},{"title":"Debug","link":"<a href=\"Debug.html\">Debug</a>"},{"title":"Debug.debugAABB","link":"<a href=\"Debug.html#.debugAABB\">Debug.debugAABB &rtrif; undefined</a>"},{"title":"Debug.debugCircle","link":"<a href=\"Debug.html#.debugCircle\">Debug.debugCircle &rtrif; undefined</a>"},{"title":"Debug.debugClear","link":"<a href=\"Debug.html#.debugClear\">Debug.debugClear &rtrif; undefined</a>"},{"title":"Debug.debugLine","link":"<a href=\"Debug.html#.debugLine\">Debug.debugLine &rtrif; undefined</a>"},{"title":"Debug.debugPoint","link":"<a href=\"Debug.html#.debugPoint\">Debug.debugPoint &rtrif; undefined</a>"},{"title":"Debug.debugRect","link":"<a href=\"Debug.html#.debugRect\">Debug.debugRect &rtrif; undefined</a>"},{"title":"Debug.debugSaveCanvas","link":"<a href=\"Debug.html#.debugSaveCanvas\">Debug.debugSaveCanvas &rtrif; undefined</a>"},{"title":"Debug.debugText","link":"<a href=\"Debug.html#.debugText\">Debug.debugText &rtrif; undefined</a>"},{"title":"Draw","link":"<a href=\"Draw.html\">Draw</a>"},{"title":"Draw.drawCanvas2D","link":"<a href=\"Draw.html#.drawCanvas2D\">Draw.drawCanvas2D &rtrif; undefined</a>"},{"title":"Draw.drawLine","link":"<a href=\"Draw.html#.drawLine\">Draw.drawLine &rtrif; undefined</a>"},{"title":"Draw.drawRect","link":"<a href=\"Draw.html#.drawRect\">Draw.drawRect &rtrif; undefined</a>"},{"title":"Draw.drawRectScreenSpace","link":"<a href=\"Draw.html#.drawRectScreenSpace\">Draw.drawRectScreenSpace &rtrif; undefined</a>"},{"title":"Draw.drawText","link":"<a href=\"Draw.html#.drawText\">Draw.drawText &rtrif; undefined</a>"},{"title":"Draw.drawTile","link":"<a href=\"Draw.html#.drawTile\">Draw.drawTile &rtrif; undefined</a>"},{"title":"Draw.drawTileScreenSpace","link":"<a href=\"Draw.html#.drawTileScreenSpace\">Draw.drawTileScreenSpace &rtrif; undefined</a>"},{"title":"Draw.isFullscreen","link":"<a href=\"Draw.html#.isFullscreen\">Draw.isFullscreen &rtrif; undefined</a>"},{"title":"Draw.screenToWorld","link":"<a href=\"Draw.html#.screenToWorld\">Draw.screenToWorld &rtrif; undefined</a>"},{"title":"Draw.setBlendMode","link":"<a href=\"Draw.html#.setBlendMode\">Draw.setBlendMode &rtrif; undefined</a>"},{"title":"Draw.toggleFullscreen","link":"<a href=\"Draw.html#.toggleFullscreen\">Draw.toggleFullscreen &rtrif; undefined</a>"},{"title":"Draw.worldToScreen","link":"<a href=\"Draw.html#.worldToScreen\">Draw.worldToScreen &rtrif; undefined</a>"},{"title":"Input","link":"<a href=\"Input.html\">Input</a>"},{"title":"Input.clearInput","link":"<a href=\"Input.html#.clearInput\">Input.clearInput &rtrif; undefined</a>"},{"title":"Input.gamepadIsDown","link":"<a href=\"Input.html#.gamepadIsDown\">Input.gamepadIsDown &rtrif; undefined</a>"},{"title":"Input.gamepadStick","link":"<a href=\"Input.html#.gamepadStick\">Input.gamepadStick &rtrif; undefined</a>"},{"title":"Input.gamepadWasPressed","link":"<a href=\"Input.html#.gamepadWasPressed\">Input.gamepadWasPressed &rtrif; undefined</a>"},{"title":"Input.gamepadWasReleased","link":"<a href=\"Input.html#.gamepadWasReleased\">Input.gamepadWasReleased &rtrif; undefined</a>"},{"title":"Input.keyIsDown","link":"<a href=\"Input.html#.keyIsDown\">Input.keyIsDown &rtrif; undefined</a>"},{"title":"Input.keyWasPressed","link":"<a href=\"Input.html#.keyWasPressed\">Input.keyWasPressed &rtrif; undefined</a>"},{"title":"Input.keyWasReleased","link":"<a href=\"Input.html#.keyWasReleased\">Input.keyWasReleased &rtrif; undefined</a>"},{"title":"Medals","link":"<a href=\"Medals.html\">Medals</a>"},{"title":"Medals.medalsInit","link":"<a href=\"Medals.html#.medalsInit\">Medals.medalsInit &rtrif; undefined</a>"},{"title":"Random","link":"<a href=\"Random.html\">Random</a>"},{"title":"Random.rand","link":"<a href=\"Random.html#.rand\">Random.rand &rtrif; undefined</a>"},{"title":"Random.randColor","link":"<a href=\"Random.html#.randColor\">Random.randColor &rtrif; undefined</a>"},{"title":"Random.randInCircle","link":"<a href=\"Random.html#.randInCircle\">Random.randInCircle &rtrif; undefined</a>"},{"title":"Random.randInt","link":"<a href=\"Random.html#.randInt\">Random.randInt &rtrif; undefined</a>"},{"title":"Random.randSeeded","link":"<a href=\"Random.html#.randSeeded\">Random.randSeeded &rtrif; undefined</a>"},{"title":"Random.randSign","link":"<a href=\"Random.html#.randSign\">Random.randSign &rtrif; undefined</a>"},{"title":"Random.randVector","link":"<a href=\"Random.html#.randVector\">Random.randVector &rtrif; undefined</a>"},{"title":"Settings","link":"<a href=\"Settings.html\">Settings</a>"},{"title":"TileCollision","link":"<a href=\"TileCollision.html\">TileCollision</a>"},{"title":"TileCollision.getTileCollisionData","link":"<a href=\"TileCollision.html#.getTileCollisionData\">TileCollision.getTileCollisionData &rtrif; undefined</a>"},{"title":"TileCollision.initTileCollision","link":"<a href=\"TileCollision.html#.initTileCollision\">TileCollision.initTileCollision &rtrif; undefined</a>"},{"title":"TileCollision.setTileCollisionData","link":"<a href=\"TileCollision.html#.setTileCollisionData\">TileCollision.setTileCollisionData &rtrif; undefined</a>"},{"title":"TileCollision.tileCollisionRaycast","link":"<a href=\"TileCollision.html#.tileCollisionRaycast\">TileCollision.tileCollisionRaycast &rtrif; undefined</a>"},{"title":"TileCollision.tileCollisionTest","link":"<a href=\"TileCollision.html#.tileCollisionTest\">TileCollision.tileCollisionTest &rtrif; undefined</a>"},{"title":"Utilities","link":"<a href=\"Utilities.html\">Utilities</a>"},{"title":"Utilities.abs","link":"<a href=\"Utilities.html#.abs\">Utilities.abs &rtrif; undefined</a>"},{"title":"Utilities.clamp","link":"<a href=\"Utilities.html#.clamp\">Utilities.clamp &rtrif; undefined</a>"},{"title":"Utilities.formatTime","link":"<a href=\"Utilities.html#.formatTime\">Utilities.formatTime &rtrif; undefined</a>"},{"title":"Utilities.isOverlapping","link":"<a href=\"Utilities.html#.isOverlapping\">Utilities.isOverlapping &rtrif; undefined</a>"},{"title":"Utilities.lerp","link":"<a href=\"Utilities.html#.lerp\">Utilities.lerp &rtrif; undefined</a>"},{"title":"Utilities.max","link":"<a href=\"Utilities.html#.max\">Utilities.max &rtrif; undefined</a>"},{"title":"Utilities.min","link":"<a href=\"Utilities.html#.min\">Utilities.min &rtrif; undefined</a>"},{"title":"Utilities.mod","link":"<a href=\"Utilities.html#.mod\">Utilities.mod &rtrif; undefined</a>"},{"title":"Utilities.nearestPowerOfTwo","link":"<a href=\"Utilities.html#.nearestPowerOfTwo\">Utilities.nearestPowerOfTwo &rtrif; undefined</a>"},{"title":"Utilities.percent","link":"<a href=\"Utilities.html#.percent\">Utilities.percent &rtrif; undefined</a>"},{"title":"Utilities.sign","link":"<a href=\"Utilities.html#.sign\">Utilities.sign &rtrif; undefined</a>"},{"title":"Utilities.smoothStep","link":"<a href=\"Utilities.html#.smoothStep\">Utilities.smoothStep &rtrif; undefined</a>"},{"title":"Utilities.vec2","link":"<a href=\"Utilities.html#.vec2\">Utilities.vec2 &rtrif; undefined</a>"},{"title":"Utilities.wave","link":"<a href=\"Utilities.html#.wave\">Utilities.wave &rtrif; undefined</a>"},{"title":"WebGL","link":"<a href=\"WebGL.html\">WebGL</a>"},{"title":"WebGL.glCompileShader","link":"<a href=\"WebGL.html#.glCompileShader\">WebGL.glCompileShader &rtrif; undefined</a>"},{"title":"WebGL.glCopyToContext","link":"<a href=\"WebGL.html#.glCopyToContext\">WebGL.glCopyToContext &rtrif; undefined</a>"},{"title":"WebGL.glCreateBuffer","link":"<a href=\"WebGL.html#.glCreateBuffer\">WebGL.glCreateBuffer &rtrif; undefined</a>"},{"title":"WebGL.glCreateProgram","link":"<a href=\"WebGL.html#.glCreateProgram\">WebGL.glCreateProgram &rtrif; undefined</a>"},{"title":"WebGL.glCreateTexture","link":"<a href=\"WebGL.html#.glCreateTexture\">WebGL.glCreateTexture &rtrif; undefined</a>"},{"title":"WebGL.glDraw","link":"<a href=\"WebGL.html#.glDraw\">WebGL.glDraw &rtrif; undefined</a>"},{"title":"WebGL.glFlush","link":"<a href=\"WebGL.html#.glFlush\">WebGL.glFlush &rtrif; undefined</a>"},{"title":"WebGL.glSetBlendMode","link":"<a href=\"WebGL.html#.glSetBlendMode\">WebGL.glSetBlendMode &rtrif; undefined</a>"},{"title":"WebGL.glSetTexture","link":"<a href=\"WebGL.html#.glSetTexture\">WebGL.glSetTexture &rtrif; undefined</a>"},{"title":"engineCollideObjects","link":"<a href=\"global.html#engineCollideObjects\">engineCollideObjects</a>"},{"title":"engineInit","link":"<a href=\"global.html#engineInit\">engineInit</a>"},{"title":"engineName","link":"<a href=\"global.html#engineName\">engineName</a>"},{"title":"engineObjects","link":"<a href=\"global.html#engineObjects\">engineObjects</a>"},{"title":"engineObjectsCallback","link":"<a href=\"global.html#engineObjectsCallback\">engineObjectsCallback</a>"},{"title":"engineObjectsDestroy","link":"<a href=\"global.html#engineObjectsDestroy\">engineObjectsDestroy</a>"},{"title":"engineObjectsUpdate","link":"<a href=\"global.html#engineObjectsUpdate\">engineObjectsUpdate</a>"},{"title":"engineVersion","link":"<a href=\"global.html#engineVersion\">engineVersion</a>"},{"title":"FPS","link":"<a href=\"global.html#FPS\">FPS</a>"},{"title":"frame","link":"<a href=\"global.html#frame\">frame</a>"},{"title":"paused","link":"<a href=\"global.html#paused\">paused</a>"},{"title":"time","link":"<a href=\"global.html#time\">time</a>"},{"title":"timeDelta","link":"<a href=\"global.html#timeDelta\">timeDelta</a>"},{"title":"timeReal","link":"<a href=\"global.html#timeReal\">timeReal</a>"}];
4080
+ var options =
4081
+ setupSearch(list, options)
4082
+ </script>
4083
+
4084
+
4085
+
4086
+
4087
+
4088
+
4089
+
4090
+
4091
+
4092
+
4093
+
4094
+ </body>
4095
+
4096
+ </html>