littlejsengine 1.3.3 → 1.3.5

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 (81) hide show
  1. package/README.md +3 -4
  2. package/buildSetup.bat +4 -1
  3. package/engine/engine.all.js +7 -7
  4. package/engine/engine.all.min.js +1 -1
  5. package/engine/engine.all.release.js +6 -6
  6. package/engine/engine.js +1 -1
  7. package/engine/engineDebug.js +1 -1
  8. package/engine/engineDraw.js +1 -1
  9. package/engine/engineObject.js +3 -3
  10. package/engine/engineUtilities.js +1 -1
  11. package/engine/index.d.ts +2 -2
  12. package/examples/breakout/index.html +3 -3
  13. package/examples/particles/index.html +105 -57
  14. package/examples/platformer/index.html +5 -5
  15. package/examples/puzzle/index.html +2 -2
  16. package/examples/stress/index.html +1 -1
  17. package/game.js +7 -7
  18. package/index.html +13 -13
  19. package/package.json +1 -1
  20. package/docs/Audio.html +0 -2268
  21. package/docs/Color.html +0 -3376
  22. package/docs/Debug.html +0 -2933
  23. package/docs/Draw.html +0 -4480
  24. package/docs/EngineObject.html +0 -4734
  25. package/docs/FontImage.html +0 -1055
  26. package/docs/Input.html +0 -2806
  27. package/docs/Medal.html +0 -1007
  28. package/docs/Medals.html +0 -628
  29. package/docs/Music.html +0 -584
  30. package/docs/Newgrounds.html +0 -1399
  31. package/docs/Particle.html +0 -4825
  32. package/docs/ParticleEmitter.html +0 -8099
  33. package/docs/Random.html +0 -1774
  34. package/docs/Settings.html +0 -3140
  35. package/docs/Sound.html +0 -1249
  36. package/docs/TileCollision.html +0 -1409
  37. package/docs/TileLayer.html +0 -7310
  38. package/docs/TileLayerData.html +0 -1052
  39. package/docs/Timer.html +0 -1295
  40. package/docs/Utilities.html +0 -3278
  41. package/docs/Vector2.html +0 -4266
  42. package/docs/WebGL.html +0 -2307
  43. package/docs/engine.js.html +0 -443
  44. package/docs/engineAudio.js.html +0 -627
  45. package/docs/engineDebug.js.html +0 -554
  46. package/docs/engineDraw.js.html +0 -539
  47. package/docs/engineInput.js.html +0 -571
  48. package/docs/engineMedals.js.html +0 -460
  49. package/docs/engineObject.js.html +0 -533
  50. package/docs/engineParticles.js.html +0 -443
  51. package/docs/engineSettings.js.html +0 -381
  52. package/docs/engineTileLayer.js.html +0 -503
  53. package/docs/engineUtilities.js.html +0 -700
  54. package/docs/engineWebGL.js.html +0 -511
  55. package/docs/fonts/MavenPro-Regular.ttf +0 -0
  56. package/docs/fonts/Montserrat-Regular.ttf +0 -0
  57. package/docs/fonts/Muli-Black.ttf +0 -0
  58. package/docs/fonts/OFL-hind.txt +0 -93
  59. package/docs/fonts/OFL-montserrat.txt +0 -93
  60. package/docs/global.html +0 -1771
  61. package/docs/index.css +0 -6
  62. package/docs/index.html +0 -267
  63. package/docs/scripts/fix-code-block.js +0 -53
  64. package/docs/scripts/fix-navbar.js +0 -25
  65. package/docs/scripts/linenumber.js +0 -25
  66. package/docs/scripts/misc.js +0 -217
  67. package/docs/scripts/resize.js +0 -85
  68. package/docs/scripts/search.js +0 -83
  69. package/docs/scripts/third-party/Apache-License-2.0.txt +0 -202
  70. package/docs/scripts/third-party/fuse.js +0 -9
  71. package/docs/scripts/third-party/lang-css.js +0 -2
  72. package/docs/scripts/third-party/prettify.js +0 -28
  73. package/docs/static/favicon.png +0 -0
  74. package/docs/static/index.css +0 -4
  75. package/docs/styles/clean-jsdoc-theme-base.css +0 -393
  76. package/docs/styles/clean-jsdoc-theme-dark.css +0 -324
  77. package/docs/styles/clean-jsdoc-theme-light.css +0 -319
  78. package/docs/styles/reset.css +0 -346
  79. package/docs/styles/third-party/ionicons.min.css +0 -11
  80. package/docs/styles/third-party/prettify-jsdoc.css +0 -111
  81. package/docs/styles/third-party/prettify-tomorrow.css +0 -5
package/docs/Draw.html DELETED
@@ -1,4480 +0,0 @@
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="3563688" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=7746959><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#getHSLA">getHSLA</a></li><li data-type='method'><a href="Color.html#hex">hex</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#rgbaInt">rgbaInt</a></li><li data-type='method'><a href="Color.html#scale">scale</a></li><li data-type='method'><a href="Color.html#setHex">setHex</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><li data-type='method'><a href="Color.html#toString">toString</a></li></ul></li><li class="accordion collapsed child" id=6307330><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=8508237><div class="accordion-heading child"><a href="FontImage.html">FontImage</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="FontImage.html#drawText">drawText</a></li><li data-type='method'><a href="FontImage.html#drawTextScreen">drawTextScreen</a></li></ul></li><li class="accordion collapsed child" id=2613323><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=5931143><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=7102537><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=4104404><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=8166593><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=1946205><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=2790513><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=8451372><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=1385312><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#toString">toString</a></li><li data-type='method'><a href="Timer.html#unset">unset</a></li></ul></li><li class="accordion collapsed child" id=5094252><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#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><li data-type='method'><a href="Vector2.html#toString">toString</a></li></ul></li></ul> </div><div class="accordion collapsed" id="9985463" > <h3 class="accordion-heading">Namespaces<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=1451135><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=3748274><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#.drawTextScreen">drawTextScreen</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=1641359><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><li data-type='method'><a href="Input.html#.vibrate">vibrate</a></li><li data-type='method'><a href="Input.html#.vibrateStop">vibrateStop</a></li></ul></li><li class="accordion collapsed child" id=9832293><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=219095><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=2884620><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=9516194><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=228864><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="4889956" > <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#engineFontImage">engineFontImage</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#engineObjectsCollide">engineObjectsCollide</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#frame">frame</a></li><li class="accordion-list" id=""><a href="global.html#frameRate">frameRate</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
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <dl class="details">
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
- <div class="details-item-container">
173
- <dt class="tag-source">Source:</dt>
174
- <dd class="tag-source"><ul class="dummy"><li>
175
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line1">line 1</a>
176
- </li></ul></dd>
177
- </div>
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
- </dl>
186
-
187
-
188
-
189
-
190
-
191
-
192
- </div>
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
- <h3 class="subsection-title">Members</h3>
206
-
207
-
208
-
209
- <h4 class="name" id=".mainCanvas">
210
- <a href="#.mainCanvas">#</a>
211
- <span class="type-signature">(static) </span>mainCanvas<span class="type-signature"> :HTMLCanvasElement</span>
212
- </h4>
213
-
214
-
215
-
216
-
217
- <div class="description">
218
- The primary 2D canvas visible to the user
219
- </div>
220
-
221
-
222
-
223
- <div class="member-item-container flex">
224
- <strong>Type: </strong>
225
- <ul>
226
- <li>
227
-
228
- <span class="param-type">HTMLCanvasElement</span>
229
-
230
-
231
- </li>
232
- </ul>
233
- </div>
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
- <dl class="details">
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
- <div class="details-item-container">
269
- <dt class="tag-source">Source:</dt>
270
- <dd class="tag-source"><ul class="dummy"><li>
271
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line33">line 33</a>
272
- </li></ul></dd>
273
- </div>
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
- </dl>
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- <h4 class="name" id=".mainCanvasSize">
293
- <a href="#.mainCanvasSize">#</a>
294
- <span class="type-signature">(static) </span>mainCanvasSize<span class="type-signature"> :<a href="Vector2.html">Vector2</a></span>
295
- </h4>
296
-
297
-
298
-
299
-
300
- <div class="description">
301
- The size of the main canvas (and other secondary canvases)
302
- </div>
303
-
304
-
305
-
306
- <div class="member-item-container flex">
307
- <strong>Type: </strong>
308
- <ul>
309
- <li>
310
-
311
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
312
-
313
-
314
- </li>
315
- </ul>
316
- </div>
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
- <dl class="details">
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
- <div class="details-item-container">
352
- <dt class="tag-source">Source:</dt>
353
- <dd class="tag-source"><ul class="dummy"><li>
354
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line53">line 53</a>
355
- </li></ul></dd>
356
- </div>
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
- </dl>
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
- <h4 class="name" id=".mainContext">
376
- <a href="#.mainContext">#</a>
377
- <span class="type-signature">(static) </span>mainContext<span class="type-signature"> :CanvasRenderingContext2D</span>
378
- </h4>
379
-
380
-
381
-
382
-
383
- <div class="description">
384
- 2d context for mainCanvas
385
- </div>
386
-
387
-
388
-
389
- <div class="member-item-container flex">
390
- <strong>Type: </strong>
391
- <ul>
392
- <li>
393
-
394
- <span class="param-type">CanvasRenderingContext2D</span>
395
-
396
-
397
- </li>
398
- </ul>
399
- </div>
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
- <dl class="details">
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
- <div class="details-item-container">
435
- <dt class="tag-source">Source:</dt>
436
- <dd class="tag-source"><ul class="dummy"><li>
437
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line38">line 38</a>
438
- </li></ul></dd>
439
- </div>
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
- </dl>
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
- <h4 class="name" id=".overlayCanvas">
459
- <a href="#.overlayCanvas">#</a>
460
- <span class="type-signature">(static) </span>overlayCanvas<span class="type-signature"> :HTMLCanvasElement</span>
461
- </h4>
462
-
463
-
464
-
465
-
466
- <div class="description">
467
- A canvas that appears on top of everything the same size as mainCanvas
468
- </div>
469
-
470
-
471
-
472
- <div class="member-item-container flex">
473
- <strong>Type: </strong>
474
- <ul>
475
- <li>
476
-
477
- <span class="param-type">HTMLCanvasElement</span>
478
-
479
-
480
- </li>
481
- </ul>
482
- </div>
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
- <dl class="details">
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
- <div class="details-item-container">
518
- <dt class="tag-source">Source:</dt>
519
- <dd class="tag-source"><ul class="dummy"><li>
520
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line43">line 43</a>
521
- </li></ul></dd>
522
- </div>
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
- </dl>
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
- <h4 class="name" id=".overlayContext">
542
- <a href="#.overlayContext">#</a>
543
- <span class="type-signature">(static) </span>overlayContext<span class="type-signature"> :CanvasRenderingContext2D</span>
544
- </h4>
545
-
546
-
547
-
548
-
549
- <div class="description">
550
- 2d context for overlayCanvas
551
- </div>
552
-
553
-
554
-
555
- <div class="member-item-container flex">
556
- <strong>Type: </strong>
557
- <ul>
558
- <li>
559
-
560
- <span class="param-type">CanvasRenderingContext2D</span>
561
-
562
-
563
- </li>
564
- </ul>
565
- </div>
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
- <dl class="details">
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
- <div class="details-item-container">
601
- <dt class="tag-source">Source:</dt>
602
- <dd class="tag-source"><ul class="dummy"><li>
603
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line48">line 48</a>
604
- </li></ul></dd>
605
- </div>
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
- </dl>
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
- <h4 class="name" id=".tileImage">
625
- <a href="#.tileImage">#</a>
626
- <span class="type-signature">(static, constant) </span>tileImage<span class="type-signature"> :Image</span>
627
- </h4>
628
-
629
-
630
-
631
-
632
- <div class="description">
633
- Tile sheet for batch rendering system
634
- </div>
635
-
636
-
637
-
638
- <div class="member-item-container flex">
639
- <strong>Type: </strong>
640
- <ul>
641
- <li>
642
-
643
- <span class="param-type">Image</span>
644
-
645
-
646
- </li>
647
- </ul>
648
- </div>
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
- <dl class="details">
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
- <div class="details-item-container">
684
- <dt class="tag-source">Source:</dt>
685
- <dd class="tag-source"><ul class="dummy"><li>
686
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line28">line 28</a>
687
- </li></ul></dd>
688
- </div>
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
- </dl>
697
-
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
-
706
-
707
-
708
-
709
- <h3 class="subsection-title">Methods</h3>
710
-
711
-
712
-
713
-
714
-
715
-
716
- <h4 class="name" id=".drawCanvas2D">
717
- <a href="#.drawCanvas2D">#</a>
718
- <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>
719
- </h4>
720
-
721
-
722
-
723
-
724
-
725
- <div class="description">
726
- Draw directly to a 2d canvas context in world space
727
- </div>
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
738
- <strong>Parameters:</strong>
739
-
740
-
741
- <table class="params">
742
- <thead>
743
- <tr>
744
-
745
- <th>Name</th>
746
-
747
-
748
- <th>Type</th>
749
-
750
-
751
- <th>Attributes</th>
752
-
753
-
754
-
755
- <th>Default</th>
756
-
757
-
758
- <th class="last">Description</th>
759
- </tr>
760
- </thead>
761
-
762
- <tbody>
763
-
764
-
765
- <tr>
766
-
767
- <td class="name"><code>pos</code></td>
768
-
769
-
770
- <td class="type">
771
-
772
-
773
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
774
-
775
-
776
-
777
- </td>
778
-
779
-
780
- <td class="attributes">
781
-
782
-
783
-
784
-
785
-
786
- </td>
787
-
788
-
789
-
790
- <td class="default">
791
-
792
- </td>
793
-
794
-
795
- <td class="description last"></td>
796
- </tr>
797
-
798
-
799
-
800
- <tr>
801
-
802
- <td class="name"><code>size</code></td>
803
-
804
-
805
- <td class="type">
806
-
807
-
808
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
809
-
810
-
811
-
812
- </td>
813
-
814
-
815
- <td class="attributes">
816
-
817
-
818
-
819
-
820
-
821
- </td>
822
-
823
-
824
-
825
- <td class="default">
826
-
827
- </td>
828
-
829
-
830
- <td class="description last"></td>
831
- </tr>
832
-
833
-
834
-
835
- <tr>
836
-
837
- <td class="name"><code>angle</code></td>
838
-
839
-
840
- <td class="type">
841
-
842
-
843
- <span class="param-type">Number</span>
844
-
845
-
846
-
847
- </td>
848
-
849
-
850
- <td class="attributes">
851
-
852
-
853
-
854
-
855
-
856
- </td>
857
-
858
-
859
-
860
- <td class="default">
861
-
862
- </td>
863
-
864
-
865
- <td class="description last"></td>
866
- </tr>
867
-
868
-
869
-
870
- <tr>
871
-
872
- <td class="name"><code>mirror</code></td>
873
-
874
-
875
- <td class="type">
876
-
877
-
878
- <span class="param-type">Boolean</span>
879
-
880
-
881
-
882
- </td>
883
-
884
-
885
- <td class="attributes">
886
-
887
-
888
-
889
-
890
-
891
- </td>
892
-
893
-
894
-
895
- <td class="default">
896
-
897
- </td>
898
-
899
-
900
- <td class="description last"></td>
901
- </tr>
902
-
903
-
904
-
905
- <tr>
906
-
907
- <td class="name"><code>drawFunction</code></td>
908
-
909
-
910
- <td class="type">
911
-
912
-
913
- <span class="param-type">function</span>
914
-
915
-
916
-
917
- </td>
918
-
919
-
920
- <td class="attributes">
921
-
922
-
923
-
924
-
925
-
926
- </td>
927
-
928
-
929
-
930
- <td class="default">
931
-
932
- </td>
933
-
934
-
935
- <td class="description last"></td>
936
- </tr>
937
-
938
-
939
-
940
- <tr>
941
-
942
- <td class="name"><code>context</code></td>
943
-
944
-
945
- <td class="type">
946
-
947
-
948
- <span class="param-type">CanvasRenderingContext2D</span>
949
-
950
-
951
-
952
- </td>
953
-
954
-
955
- <td class="attributes">
956
-
957
- &lt;optional><br>
958
-
959
-
960
-
961
-
962
-
963
- </td>
964
-
965
-
966
-
967
- <td class="default">
968
-
969
- mainContext
970
-
971
- </td>
972
-
973
-
974
- <td class="description last"></td>
975
- </tr>
976
-
977
-
978
- </tbody>
979
- </table>
980
-
981
- </div>
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
- <dl class="details">
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
- <div class="details-item-container">
1017
- <dt class="tag-source">Source:</dt>
1018
- <dd class="tag-source"><ul class="dummy"><li>
1019
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line193">line 193</a>
1020
- </li></ul></dd>
1021
- </div>
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
- </dl>
1030
-
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
-
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
-
1053
- <h4 class="name" id=".drawLine">
1054
- <a href="#.drawLine">#</a>
1055
- <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>
1056
- </h4>
1057
-
1058
-
1059
-
1060
-
1061
-
1062
- <div class="description">
1063
- Draw colored line between two points
1064
- </div>
1065
-
1066
-
1067
-
1068
-
1069
-
1070
-
1071
-
1072
-
1073
-
1074
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1075
- <strong>Parameters:</strong>
1076
-
1077
-
1078
- <table class="params">
1079
- <thead>
1080
- <tr>
1081
-
1082
- <th>Name</th>
1083
-
1084
-
1085
- <th>Type</th>
1086
-
1087
-
1088
- <th>Attributes</th>
1089
-
1090
-
1091
-
1092
- <th>Default</th>
1093
-
1094
-
1095
- <th class="last">Description</th>
1096
- </tr>
1097
- </thead>
1098
-
1099
- <tbody>
1100
-
1101
-
1102
- <tr>
1103
-
1104
- <td class="name"><code>posA</code></td>
1105
-
1106
-
1107
- <td class="type">
1108
-
1109
-
1110
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1111
-
1112
-
1113
-
1114
- </td>
1115
-
1116
-
1117
- <td class="attributes">
1118
-
1119
-
1120
-
1121
-
1122
-
1123
- </td>
1124
-
1125
-
1126
-
1127
- <td class="default">
1128
-
1129
- </td>
1130
-
1131
-
1132
- <td class="description last"></td>
1133
- </tr>
1134
-
1135
-
1136
-
1137
- <tr>
1138
-
1139
- <td class="name"><code>posB</code></td>
1140
-
1141
-
1142
- <td class="type">
1143
-
1144
-
1145
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1146
-
1147
-
1148
-
1149
- </td>
1150
-
1151
-
1152
- <td class="attributes">
1153
-
1154
-
1155
-
1156
-
1157
-
1158
- </td>
1159
-
1160
-
1161
-
1162
- <td class="default">
1163
-
1164
- </td>
1165
-
1166
-
1167
- <td class="description last"></td>
1168
- </tr>
1169
-
1170
-
1171
-
1172
- <tr>
1173
-
1174
- <td class="name"><code>thickness</code></td>
1175
-
1176
-
1177
- <td class="type">
1178
-
1179
-
1180
- <span class="param-type">Number</span>
1181
-
1182
-
1183
-
1184
- </td>
1185
-
1186
-
1187
- <td class="attributes">
1188
-
1189
- &lt;optional><br>
1190
-
1191
-
1192
-
1193
-
1194
-
1195
- </td>
1196
-
1197
-
1198
-
1199
- <td class="default">
1200
-
1201
- .1
1202
-
1203
- </td>
1204
-
1205
-
1206
- <td class="description last"></td>
1207
- </tr>
1208
-
1209
-
1210
-
1211
- <tr>
1212
-
1213
- <td class="name"><code>color</code></td>
1214
-
1215
-
1216
- <td class="type">
1217
-
1218
-
1219
- <span class="param-type"><a href="Color.html">Color</a></span>
1220
-
1221
-
1222
-
1223
- </td>
1224
-
1225
-
1226
- <td class="attributes">
1227
-
1228
- &lt;optional><br>
1229
-
1230
-
1231
-
1232
-
1233
-
1234
- </td>
1235
-
1236
-
1237
-
1238
- <td class="default">
1239
-
1240
- new Color(1,1,1)
1241
-
1242
- </td>
1243
-
1244
-
1245
- <td class="description last"></td>
1246
- </tr>
1247
-
1248
-
1249
-
1250
- <tr>
1251
-
1252
- <td class="name"><code>useWebGL</code></td>
1253
-
1254
-
1255
- <td class="type">
1256
-
1257
-
1258
- <span class="param-type">Boolean</span>
1259
-
1260
-
1261
-
1262
- </td>
1263
-
1264
-
1265
- <td class="attributes">
1266
-
1267
- &lt;optional><br>
1268
-
1269
-
1270
-
1271
-
1272
-
1273
- </td>
1274
-
1275
-
1276
-
1277
- <td class="default">
1278
-
1279
- glEnable
1280
-
1281
- </td>
1282
-
1283
-
1284
- <td class="description last"></td>
1285
- </tr>
1286
-
1287
-
1288
- </tbody>
1289
- </table>
1290
-
1291
- </div>
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
- <dl class="details">
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
-
1310
-
1311
-
1312
-
1313
-
1314
-
1315
-
1316
-
1317
-
1318
-
1319
-
1320
-
1321
-
1322
-
1323
-
1324
-
1325
-
1326
- <div class="details-item-container">
1327
- <dt class="tag-source">Source:</dt>
1328
- <dd class="tag-source"><ul class="dummy"><li>
1329
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line178">line 178</a>
1330
- </li></ul></dd>
1331
- </div>
1332
-
1333
-
1334
-
1335
-
1336
-
1337
-
1338
-
1339
- </dl>
1340
-
1341
-
1342
-
1343
-
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
-
1351
-
1352
-
1353
-
1354
-
1355
-
1356
-
1357
-
1358
-
1359
-
1360
-
1361
-
1362
-
1363
- <h4 class="name" id=".drawRect">
1364
- <a href="#.drawRect">#</a>
1365
- <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>
1366
- </h4>
1367
-
1368
-
1369
-
1370
-
1371
-
1372
- <div class="description">
1373
- Draw colored rect centered on pos
1374
- </div>
1375
-
1376
-
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
-
1384
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1385
- <strong>Parameters:</strong>
1386
-
1387
-
1388
- <table class="params">
1389
- <thead>
1390
- <tr>
1391
-
1392
- <th>Name</th>
1393
-
1394
-
1395
- <th>Type</th>
1396
-
1397
-
1398
- <th>Attributes</th>
1399
-
1400
-
1401
-
1402
- <th>Default</th>
1403
-
1404
-
1405
- <th class="last">Description</th>
1406
- </tr>
1407
- </thead>
1408
-
1409
- <tbody>
1410
-
1411
-
1412
- <tr>
1413
-
1414
- <td class="name"><code>pos</code></td>
1415
-
1416
-
1417
- <td class="type">
1418
-
1419
-
1420
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1421
-
1422
-
1423
-
1424
- </td>
1425
-
1426
-
1427
- <td class="attributes">
1428
-
1429
-
1430
-
1431
-
1432
-
1433
- </td>
1434
-
1435
-
1436
-
1437
- <td class="default">
1438
-
1439
- </td>
1440
-
1441
-
1442
- <td class="description last"></td>
1443
- </tr>
1444
-
1445
-
1446
-
1447
- <tr>
1448
-
1449
- <td class="name"><code>size</code></td>
1450
-
1451
-
1452
- <td class="type">
1453
-
1454
-
1455
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1456
-
1457
-
1458
-
1459
- </td>
1460
-
1461
-
1462
- <td class="attributes">
1463
-
1464
- &lt;optional><br>
1465
-
1466
-
1467
-
1468
-
1469
-
1470
- </td>
1471
-
1472
-
1473
-
1474
- <td class="default">
1475
-
1476
- new Vector2(1,1)
1477
-
1478
- </td>
1479
-
1480
-
1481
- <td class="description last"></td>
1482
- </tr>
1483
-
1484
-
1485
-
1486
- <tr>
1487
-
1488
- <td class="name"><code>color</code></td>
1489
-
1490
-
1491
- <td class="type">
1492
-
1493
-
1494
- <span class="param-type"><a href="Color.html">Color</a></span>
1495
-
1496
-
1497
-
1498
- </td>
1499
-
1500
-
1501
- <td class="attributes">
1502
-
1503
- &lt;optional><br>
1504
-
1505
-
1506
-
1507
-
1508
-
1509
- </td>
1510
-
1511
-
1512
-
1513
- <td class="default">
1514
-
1515
- new Color(1,1,1)
1516
-
1517
- </td>
1518
-
1519
-
1520
- <td class="description last"></td>
1521
- </tr>
1522
-
1523
-
1524
-
1525
- <tr>
1526
-
1527
- <td class="name"><code>angle</code></td>
1528
-
1529
-
1530
- <td class="type">
1531
-
1532
-
1533
- <span class="param-type">Number</span>
1534
-
1535
-
1536
-
1537
- </td>
1538
-
1539
-
1540
- <td class="attributes">
1541
-
1542
- &lt;optional><br>
1543
-
1544
-
1545
-
1546
-
1547
-
1548
- </td>
1549
-
1550
-
1551
-
1552
- <td class="default">
1553
-
1554
- 0
1555
-
1556
- </td>
1557
-
1558
-
1559
- <td class="description last"></td>
1560
- </tr>
1561
-
1562
-
1563
-
1564
- <tr>
1565
-
1566
- <td class="name"><code>useWebGL</code></td>
1567
-
1568
-
1569
- <td class="type">
1570
-
1571
-
1572
- <span class="param-type">Boolean</span>
1573
-
1574
-
1575
-
1576
- </td>
1577
-
1578
-
1579
- <td class="attributes">
1580
-
1581
- &lt;optional><br>
1582
-
1583
-
1584
-
1585
-
1586
-
1587
- </td>
1588
-
1589
-
1590
-
1591
- <td class="default">
1592
-
1593
- glEnable
1594
-
1595
- </td>
1596
-
1597
-
1598
- <td class="description last"></td>
1599
- </tr>
1600
-
1601
-
1602
- </tbody>
1603
- </table>
1604
-
1605
- </div>
1606
-
1607
-
1608
-
1609
-
1610
-
1611
-
1612
-
1613
- <dl class="details">
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
- <div class="details-item-container">
1641
- <dt class="tag-source">Source:</dt>
1642
- <dd class="tag-source"><ul class="dummy"><li>
1643
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line138">line 138</a>
1644
- </li></ul></dd>
1645
- </div>
1646
-
1647
-
1648
-
1649
-
1650
-
1651
-
1652
-
1653
- </dl>
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
-
1670
-
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
- <h4 class="name" id=".drawRectScreenSpace">
1678
- <a href="#.drawRectScreenSpace">#</a>
1679
- <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>
1680
- </h4>
1681
-
1682
-
1683
-
1684
-
1685
-
1686
- <div class="description">
1687
- Draw colored rectangle in screen space
1688
- </div>
1689
-
1690
-
1691
-
1692
-
1693
-
1694
-
1695
-
1696
-
1697
-
1698
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1699
- <strong>Parameters:</strong>
1700
-
1701
-
1702
- <table class="params">
1703
- <thead>
1704
- <tr>
1705
-
1706
- <th>Name</th>
1707
-
1708
-
1709
- <th>Type</th>
1710
-
1711
-
1712
- <th>Attributes</th>
1713
-
1714
-
1715
-
1716
- <th>Default</th>
1717
-
1718
-
1719
- <th class="last">Description</th>
1720
- </tr>
1721
- </thead>
1722
-
1723
- <tbody>
1724
-
1725
-
1726
- <tr>
1727
-
1728
- <td class="name"><code>pos</code></td>
1729
-
1730
-
1731
- <td class="type">
1732
-
1733
-
1734
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1735
-
1736
-
1737
-
1738
- </td>
1739
-
1740
-
1741
- <td class="attributes">
1742
-
1743
-
1744
-
1745
-
1746
-
1747
- </td>
1748
-
1749
-
1750
-
1751
- <td class="default">
1752
-
1753
- </td>
1754
-
1755
-
1756
- <td class="description last"></td>
1757
- </tr>
1758
-
1759
-
1760
-
1761
- <tr>
1762
-
1763
- <td class="name"><code>size</code></td>
1764
-
1765
-
1766
- <td class="type">
1767
-
1768
-
1769
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1770
-
1771
-
1772
-
1773
- </td>
1774
-
1775
-
1776
- <td class="attributes">
1777
-
1778
- &lt;optional><br>
1779
-
1780
-
1781
-
1782
-
1783
-
1784
- </td>
1785
-
1786
-
1787
-
1788
- <td class="default">
1789
-
1790
- new Vector2(1,1)
1791
-
1792
- </td>
1793
-
1794
-
1795
- <td class="description last"></td>
1796
- </tr>
1797
-
1798
-
1799
-
1800
- <tr>
1801
-
1802
- <td class="name"><code>color</code></td>
1803
-
1804
-
1805
- <td class="type">
1806
-
1807
-
1808
- <span class="param-type"><a href="Color.html">Color</a></span>
1809
-
1810
-
1811
-
1812
- </td>
1813
-
1814
-
1815
- <td class="attributes">
1816
-
1817
- &lt;optional><br>
1818
-
1819
-
1820
-
1821
-
1822
-
1823
- </td>
1824
-
1825
-
1826
-
1827
- <td class="default">
1828
-
1829
- new Color(1,1,1)
1830
-
1831
- </td>
1832
-
1833
-
1834
- <td class="description last"></td>
1835
- </tr>
1836
-
1837
-
1838
-
1839
- <tr>
1840
-
1841
- <td class="name"><code>angle</code></td>
1842
-
1843
-
1844
- <td class="type">
1845
-
1846
-
1847
- <span class="param-type">Number</span>
1848
-
1849
-
1850
-
1851
- </td>
1852
-
1853
-
1854
- <td class="attributes">
1855
-
1856
- &lt;optional><br>
1857
-
1858
-
1859
-
1860
-
1861
-
1862
- </td>
1863
-
1864
-
1865
-
1866
- <td class="default">
1867
-
1868
- 0
1869
-
1870
- </td>
1871
-
1872
-
1873
- <td class="description last"></td>
1874
- </tr>
1875
-
1876
-
1877
-
1878
- <tr>
1879
-
1880
- <td class="name"><code>useWebGL</code></td>
1881
-
1882
-
1883
- <td class="type">
1884
-
1885
-
1886
- <span class="param-type">Boolean</span>
1887
-
1888
-
1889
-
1890
- </td>
1891
-
1892
-
1893
- <td class="attributes">
1894
-
1895
- &lt;optional><br>
1896
-
1897
-
1898
-
1899
-
1900
-
1901
- </td>
1902
-
1903
-
1904
-
1905
- <td class="default">
1906
-
1907
- glEnable
1908
-
1909
- </td>
1910
-
1911
-
1912
- <td class="description last"></td>
1913
- </tr>
1914
-
1915
-
1916
- </tbody>
1917
- </table>
1918
-
1919
- </div>
1920
-
1921
-
1922
-
1923
-
1924
-
1925
-
1926
-
1927
- <dl class="details">
1928
-
1929
-
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
-
1937
-
1938
-
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
- <div class="details-item-container">
1955
- <dt class="tag-source">Source:</dt>
1956
- <dd class="tag-source"><ul class="dummy"><li>
1957
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line166">line 166</a>
1958
- </li></ul></dd>
1959
- </div>
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
- </dl>
1968
-
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
-
1980
-
1981
-
1982
-
1983
-
1984
-
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
- <h4 class="name" id=".drawText">
1992
- <a href="#.drawText">#</a>
1993
- <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>
1994
- </h4>
1995
-
1996
-
1997
-
1998
-
1999
-
2000
- <div class="description">
2001
- Draw text on overlay canvas in world space
2002
  Automatically splits new lines into rows
2003
- </div>
2004
-
2005
-
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
-
2013
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2014
- <strong>Parameters:</strong>
2015
-
2016
-
2017
- <table class="params">
2018
- <thead>
2019
- <tr>
2020
-
2021
- <th>Name</th>
2022
-
2023
-
2024
- <th>Type</th>
2025
-
2026
-
2027
- <th>Attributes</th>
2028
-
2029
-
2030
-
2031
- <th>Default</th>
2032
-
2033
-
2034
- <th class="last">Description</th>
2035
- </tr>
2036
- </thead>
2037
-
2038
- <tbody>
2039
-
2040
-
2041
- <tr>
2042
-
2043
- <td class="name"><code>text</code></td>
2044
-
2045
-
2046
- <td class="type">
2047
-
2048
-
2049
- <span class="param-type">String</span>
2050
-
2051
-
2052
-
2053
- </td>
2054
-
2055
-
2056
- <td class="attributes">
2057
-
2058
-
2059
-
2060
-
2061
-
2062
- </td>
2063
-
2064
-
2065
-
2066
- <td class="default">
2067
-
2068
- </td>
2069
-
2070
-
2071
- <td class="description last"></td>
2072
- </tr>
2073
-
2074
-
2075
-
2076
- <tr>
2077
-
2078
- <td class="name"><code>pos</code></td>
2079
-
2080
-
2081
- <td class="type">
2082
-
2083
-
2084
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2085
-
2086
-
2087
-
2088
- </td>
2089
-
2090
-
2091
- <td class="attributes">
2092
-
2093
-
2094
-
2095
-
2096
-
2097
- </td>
2098
-
2099
-
2100
-
2101
- <td class="default">
2102
-
2103
- </td>
2104
-
2105
-
2106
- <td class="description last"></td>
2107
- </tr>
2108
-
2109
-
2110
-
2111
- <tr>
2112
-
2113
- <td class="name"><code>size</code></td>
2114
-
2115
-
2116
- <td class="type">
2117
-
2118
-
2119
- <span class="param-type">Number</span>
2120
-
2121
-
2122
-
2123
- </td>
2124
-
2125
-
2126
- <td class="attributes">
2127
-
2128
- &lt;optional><br>
2129
-
2130
-
2131
-
2132
-
2133
-
2134
- </td>
2135
-
2136
-
2137
-
2138
- <td class="default">
2139
-
2140
- 1
2141
-
2142
- </td>
2143
-
2144
-
2145
- <td class="description last"></td>
2146
- </tr>
2147
-
2148
-
2149
-
2150
- <tr>
2151
-
2152
- <td class="name"><code>color</code></td>
2153
-
2154
-
2155
- <td class="type">
2156
-
2157
-
2158
- <span class="param-type"><a href="Color.html">Color</a></span>
2159
-
2160
-
2161
-
2162
- </td>
2163
-
2164
-
2165
- <td class="attributes">
2166
-
2167
- &lt;optional><br>
2168
-
2169
-
2170
-
2171
-
2172
-
2173
- </td>
2174
-
2175
-
2176
-
2177
- <td class="default">
2178
-
2179
- new Color(1,1,1)
2180
-
2181
- </td>
2182
-
2183
-
2184
- <td class="description last"></td>
2185
- </tr>
2186
-
2187
-
2188
-
2189
- <tr>
2190
-
2191
- <td class="name"><code>lineWidth</code></td>
2192
-
2193
-
2194
- <td class="type">
2195
-
2196
-
2197
- <span class="param-type">Number</span>
2198
-
2199
-
2200
-
2201
- </td>
2202
-
2203
-
2204
- <td class="attributes">
2205
-
2206
- &lt;optional><br>
2207
-
2208
-
2209
-
2210
-
2211
-
2212
- </td>
2213
-
2214
-
2215
-
2216
- <td class="default">
2217
-
2218
- 0
2219
-
2220
- </td>
2221
-
2222
-
2223
- <td class="description last"></td>
2224
- </tr>
2225
-
2226
-
2227
-
2228
- <tr>
2229
-
2230
- <td class="name"><code>lineColor</code></td>
2231
-
2232
-
2233
- <td class="type">
2234
-
2235
-
2236
- <span class="param-type"><a href="Color.html">Color</a></span>
2237
-
2238
-
2239
-
2240
- </td>
2241
-
2242
-
2243
- <td class="attributes">
2244
-
2245
- &lt;optional><br>
2246
-
2247
-
2248
-
2249
-
2250
-
2251
- </td>
2252
-
2253
-
2254
-
2255
- <td class="default">
2256
-
2257
- new Color(0,0,0)
2258
-
2259
- </td>
2260
-
2261
-
2262
- <td class="description last"></td>
2263
- </tr>
2264
-
2265
-
2266
-
2267
- <tr>
2268
-
2269
- <td class="name"><code>textAlign</code></td>
2270
-
2271
-
2272
- <td class="type">
2273
-
2274
-
2275
- <span class="param-type">String</span>
2276
-
2277
-
2278
-
2279
- </td>
2280
-
2281
-
2282
- <td class="attributes">
2283
-
2284
- &lt;optional><br>
2285
-
2286
-
2287
-
2288
-
2289
-
2290
- </td>
2291
-
2292
-
2293
-
2294
- <td class="default">
2295
-
2296
- 'center'
2297
-
2298
- </td>
2299
-
2300
-
2301
- <td class="description last"></td>
2302
- </tr>
2303
-
2304
-
2305
- </tbody>
2306
- </table>
2307
-
2308
- </div>
2309
-
2310
-
2311
-
2312
-
2313
-
2314
-
2315
-
2316
- <dl class="details">
2317
-
2318
-
2319
-
2320
-
2321
-
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
-
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
- <div class="details-item-container">
2344
- <dt class="tag-source">Source:</dt>
2345
- <dd class="tag-source"><ul class="dummy"><li>
2346
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line257">line 257</a>
2347
- </li></ul></dd>
2348
- </div>
2349
-
2350
-
2351
-
2352
-
2353
-
2354
-
2355
-
2356
- </dl>
2357
-
2358
-
2359
-
2360
-
2361
-
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
-
2369
-
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
-
2378
-
2379
-
2380
- <h4 class="name" id=".drawTextScreen">
2381
- <a href="#.drawTextScreen">#</a>
2382
- <span class="type-signature">(static) </span>drawTextScreen<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>
2383
- </h4>
2384
-
2385
-
2386
-
2387
-
2388
-
2389
- <div class="description">
2390
- Draw text on overlay canvas in screen space
2391
1
  Automatically splits new lines into rows
2392
- </div>
2393
-
2394
-
2395
-
2396
-
2397
-
2398
-
2399
-
2400
-
2401
-
2402
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2403
- <strong>Parameters:</strong>
2404
-
2405
-
2406
- <table class="params">
2407
- <thead>
2408
- <tr>
2409
-
2410
- <th>Name</th>
2411
-
2412
-
2413
- <th>Type</th>
2414
-
2415
-
2416
- <th>Attributes</th>
2417
-
2418
-
2419
-
2420
- <th>Default</th>
2421
-
2422
-
2423
- <th class="last">Description</th>
2424
- </tr>
2425
- </thead>
2426
-
2427
- <tbody>
2428
-
2429
-
2430
- <tr>
2431
-
2432
- <td class="name"><code>text</code></td>
2433
-
2434
-
2435
- <td class="type">
2436
-
2437
-
2438
- <span class="param-type">String</span>
2439
-
2440
-
2441
-
2442
- </td>
2443
-
2444
-
2445
- <td class="attributes">
2446
-
2447
-
2448
-
2449
-
2450
-
2451
- </td>
2452
-
2453
-
2454
-
2455
- <td class="default">
2456
-
2457
- </td>
2458
-
2459
-
2460
- <td class="description last"></td>
2461
- </tr>
2462
-
2463
-
2464
-
2465
- <tr>
2466
-
2467
- <td class="name"><code>pos</code></td>
2468
-
2469
-
2470
- <td class="type">
2471
-
2472
-
2473
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2474
-
2475
-
2476
-
2477
- </td>
2478
-
2479
-
2480
- <td class="attributes">
2481
-
2482
-
2483
-
2484
-
2485
-
2486
- </td>
2487
-
2488
-
2489
-
2490
- <td class="default">
2491
-
2492
- </td>
2493
-
2494
-
2495
- <td class="description last"></td>
2496
- </tr>
2497
-
2498
-
2499
-
2500
- <tr>
2501
-
2502
- <td class="name"><code>size</code></td>
2503
-
2504
-
2505
- <td class="type">
2506
-
2507
-
2508
- <span class="param-type">Number</span>
2509
-
2510
-
2511
-
2512
- </td>
2513
-
2514
-
2515
- <td class="attributes">
2516
-
2517
- &lt;optional><br>
2518
-
2519
-
2520
-
2521
-
2522
-
2523
- </td>
2524
-
2525
-
2526
-
2527
- <td class="default">
2528
-
2529
- 1
2530
-
2531
- </td>
2532
-
2533
-
2534
- <td class="description last"></td>
2535
- </tr>
2536
-
2537
-
2538
-
2539
- <tr>
2540
-
2541
- <td class="name"><code>color</code></td>
2542
-
2543
-
2544
- <td class="type">
2545
-
2546
-
2547
- <span class="param-type"><a href="Color.html">Color</a></span>
2548
-
2549
-
2550
-
2551
- </td>
2552
-
2553
-
2554
- <td class="attributes">
2555
-
2556
- &lt;optional><br>
2557
-
2558
-
2559
-
2560
-
2561
-
2562
- </td>
2563
-
2564
-
2565
-
2566
- <td class="default">
2567
-
2568
- new Color(1,1,1)
2569
-
2570
- </td>
2571
-
2572
-
2573
- <td class="description last"></td>
2574
- </tr>
2575
-
2576
-
2577
-
2578
- <tr>
2579
-
2580
- <td class="name"><code>lineWidth</code></td>
2581
-
2582
-
2583
- <td class="type">
2584
-
2585
-
2586
- <span class="param-type">Number</span>
2587
-
2588
-
2589
-
2590
- </td>
2591
-
2592
-
2593
- <td class="attributes">
2594
-
2595
- &lt;optional><br>
2596
-
2597
-
2598
-
2599
-
2600
-
2601
- </td>
2602
-
2603
-
2604
-
2605
- <td class="default">
2606
-
2607
- 0
2608
-
2609
- </td>
2610
-
2611
-
2612
- <td class="description last"></td>
2613
- </tr>
2614
-
2615
-
2616
-
2617
- <tr>
2618
-
2619
- <td class="name"><code>lineColor</code></td>
2620
-
2621
-
2622
- <td class="type">
2623
-
2624
-
2625
- <span class="param-type"><a href="Color.html">Color</a></span>
2626
-
2627
-
2628
-
2629
- </td>
2630
-
2631
-
2632
- <td class="attributes">
2633
-
2634
- &lt;optional><br>
2635
-
2636
-
2637
-
2638
-
2639
-
2640
- </td>
2641
-
2642
-
2643
-
2644
- <td class="default">
2645
-
2646
- new Color(0,0,0)
2647
-
2648
- </td>
2649
-
2650
-
2651
- <td class="description last"></td>
2652
- </tr>
2653
-
2654
-
2655
-
2656
- <tr>
2657
-
2658
- <td class="name"><code>textAlign</code></td>
2659
-
2660
-
2661
- <td class="type">
2662
-
2663
-
2664
- <span class="param-type">String</span>
2665
-
2666
-
2667
-
2668
- </td>
2669
-
2670
-
2671
- <td class="attributes">
2672
-
2673
- &lt;optional><br>
2674
-
2675
-
2676
-
2677
-
2678
-
2679
- </td>
2680
-
2681
-
2682
-
2683
- <td class="default">
2684
-
2685
- 'center'
2686
-
2687
- </td>
2688
-
2689
-
2690
- <td class="description last"></td>
2691
- </tr>
2692
-
2693
-
2694
- </tbody>
2695
- </table>
2696
-
2697
- </div>
2698
-
2699
-
2700
-
2701
-
2702
-
2703
-
2704
-
2705
- <dl class="details">
2706
-
2707
-
2708
-
2709
-
2710
-
2711
-
2712
-
2713
-
2714
-
2715
-
2716
-
2717
-
2718
-
2719
-
2720
-
2721
-
2722
-
2723
-
2724
-
2725
-
2726
-
2727
-
2728
-
2729
-
2730
-
2731
-
2732
- <div class="details-item-container">
2733
- <dt class="tag-source">Source:</dt>
2734
- <dd class="tag-source"><ul class="dummy"><li>
2735
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line228">line 228</a>
2736
- </li></ul></dd>
2737
- </div>
2738
-
2739
-
2740
-
2741
-
2742
-
2743
-
2744
-
2745
- </dl>
2746
-
2747
-
2748
-
2749
-
2750
-
2751
-
2752
-
2753
-
2754
-
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
-
2762
-
2763
-
2764
-
2765
-
2766
-
2767
-
2768
-
2769
- <h4 class="name" id=".drawTile">
2770
- <a href="#.drawTile">#</a>
2771
- <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>
2772
- </h4>
2773
-
2774
-
2775
-
2776
-
2777
-
2778
- <div class="description">
2779
- Draw textured tile centered in world space, with color applied if using WebGL
2780
- </div>
2781
-
2782
-
2783
-
2784
-
2785
-
2786
-
2787
-
2788
-
2789
-
2790
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2791
- <strong>Parameters:</strong>
2792
-
2793
-
2794
- <table class="params">
2795
- <thead>
2796
- <tr>
2797
-
2798
- <th>Name</th>
2799
-
2800
-
2801
- <th>Type</th>
2802
-
2803
-
2804
- <th>Attributes</th>
2805
-
2806
-
2807
-
2808
- <th>Default</th>
2809
-
2810
-
2811
- <th class="last">Description</th>
2812
- </tr>
2813
- </thead>
2814
-
2815
- <tbody>
2816
-
2817
-
2818
- <tr>
2819
-
2820
- <td class="name"><code>pos</code></td>
2821
-
2822
-
2823
- <td class="type">
2824
-
2825
-
2826
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2827
-
2828
-
2829
-
2830
- </td>
2831
-
2832
-
2833
- <td class="attributes">
2834
-
2835
-
2836
-
2837
-
2838
-
2839
- </td>
2840
-
2841
-
2842
-
2843
- <td class="default">
2844
-
2845
- </td>
2846
-
2847
-
2848
- <td class="description last">Center of the tile in world space</td>
2849
- </tr>
2850
-
2851
-
2852
-
2853
- <tr>
2854
-
2855
- <td class="name"><code>size</code></td>
2856
-
2857
-
2858
- <td class="type">
2859
-
2860
-
2861
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2862
-
2863
-
2864
-
2865
- </td>
2866
-
2867
-
2868
- <td class="attributes">
2869
-
2870
- &lt;optional><br>
2871
-
2872
-
2873
-
2874
-
2875
-
2876
- </td>
2877
-
2878
-
2879
-
2880
- <td class="default">
2881
-
2882
- new Vector2(1,1)
2883
-
2884
- </td>
2885
-
2886
-
2887
- <td class="description last">Size of the tile in world space, width and height</td>
2888
- </tr>
2889
-
2890
-
2891
-
2892
- <tr>
2893
-
2894
- <td class="name"><code>tileIndex</code></td>
2895
-
2896
-
2897
- <td class="type">
2898
-
2899
-
2900
- <span class="param-type">Number</span>
2901
-
2902
-
2903
-
2904
- </td>
2905
-
2906
-
2907
- <td class="attributes">
2908
-
2909
- &lt;optional><br>
2910
-
2911
-
2912
-
2913
-
2914
-
2915
- </td>
2916
-
2917
-
2918
-
2919
- <td class="default">
2920
-
2921
- -1
2922
-
2923
- </td>
2924
-
2925
-
2926
- <td class="description last">Tile index to use, negative is untextured</td>
2927
- </tr>
2928
-
2929
-
2930
-
2931
- <tr>
2932
-
2933
- <td class="name"><code>tileSize</code></td>
2934
-
2935
-
2936
- <td class="type">
2937
-
2938
-
2939
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2940
-
2941
-
2942
-
2943
- </td>
2944
-
2945
-
2946
- <td class="attributes">
2947
-
2948
- &lt;optional><br>
2949
-
2950
-
2951
-
2952
-
2953
-
2954
- </td>
2955
-
2956
-
2957
-
2958
- <td class="default">
2959
-
2960
- tileSizeDefault
2961
-
2962
- </td>
2963
-
2964
-
2965
- <td class="description last">Tile size in source pixels</td>
2966
- </tr>
2967
-
2968
-
2969
-
2970
- <tr>
2971
-
2972
- <td class="name"><code>color</code></td>
2973
-
2974
-
2975
- <td class="type">
2976
-
2977
-
2978
- <span class="param-type"><a href="Color.html">Color</a></span>
2979
-
2980
-
2981
-
2982
- </td>
2983
-
2984
-
2985
- <td class="attributes">
2986
-
2987
- &lt;optional><br>
2988
-
2989
-
2990
-
2991
-
2992
-
2993
- </td>
2994
-
2995
-
2996
-
2997
- <td class="default">
2998
-
2999
- new Color(1,1,1)
3000
-
3001
- </td>
3002
-
3003
-
3004
- <td class="description last">Color to modulate with</td>
3005
- </tr>
3006
-
3007
-
3008
-
3009
- <tr>
3010
-
3011
- <td class="name"><code>angle</code></td>
3012
-
3013
-
3014
- <td class="type">
3015
-
3016
-
3017
- <span class="param-type">Number</span>
3018
-
3019
-
3020
-
3021
- </td>
3022
-
3023
-
3024
- <td class="attributes">
3025
-
3026
- &lt;optional><br>
3027
-
3028
-
3029
-
3030
-
3031
-
3032
- </td>
3033
-
3034
-
3035
-
3036
- <td class="default">
3037
-
3038
- 0
3039
-
3040
- </td>
3041
-
3042
-
3043
- <td class="description last">Angle to rotate by</td>
3044
- </tr>
3045
-
3046
-
3047
-
3048
- <tr>
3049
-
3050
- <td class="name"><code>mirror</code></td>
3051
-
3052
-
3053
- <td class="type">
3054
-
3055
-
3056
- <span class="param-type">Boolean</span>
3057
-
3058
-
3059
-
3060
- </td>
3061
-
3062
-
3063
- <td class="attributes">
3064
-
3065
- &lt;optional><br>
3066
-
3067
-
3068
-
3069
-
3070
-
3071
- </td>
3072
-
3073
-
3074
-
3075
- <td class="default">
3076
-
3077
- 0
3078
-
3079
- </td>
3080
-
3081
-
3082
- <td class="description last">If true image is flipped along the Y axis</td>
3083
- </tr>
3084
-
3085
-
3086
-
3087
- <tr>
3088
-
3089
- <td class="name"><code>additiveColor</code></td>
3090
-
3091
-
3092
- <td class="type">
3093
-
3094
-
3095
- <span class="param-type"><a href="Color.html">Color</a></span>
3096
-
3097
-
3098
-
3099
- </td>
3100
-
3101
-
3102
- <td class="attributes">
3103
-
3104
- &lt;optional><br>
3105
-
3106
-
3107
-
3108
-
3109
-
3110
- </td>
3111
-
3112
-
3113
-
3114
- <td class="default">
3115
-
3116
- new Color(0,0,0,0)
3117
-
3118
- </td>
3119
-
3120
-
3121
- <td class="description last">Additive color to be applied</td>
3122
- </tr>
3123
-
3124
-
3125
-
3126
- <tr>
3127
-
3128
- <td class="name"><code>useWebGL</code></td>
3129
-
3130
-
3131
- <td class="type">
3132
-
3133
-
3134
- <span class="param-type">Boolean</span>
3135
-
3136
-
3137
-
3138
- </td>
3139
-
3140
-
3141
- <td class="attributes">
3142
-
3143
- &lt;optional><br>
3144
-
3145
-
3146
-
3147
-
3148
-
3149
- </td>
3150
-
3151
-
3152
-
3153
- <td class="default">
3154
-
3155
- glEnable
3156
-
3157
- </td>
3158
-
3159
-
3160
- <td class="description last">Use accelerated WebGL rendering</td>
3161
- </tr>
3162
-
3163
-
3164
- </tbody>
3165
- </table>
3166
-
3167
- </div>
3168
-
3169
-
3170
-
3171
-
3172
-
3173
-
3174
-
3175
- <dl class="details">
3176
-
3177
-
3178
-
3179
-
3180
-
3181
-
3182
-
3183
-
3184
-
3185
-
3186
-
3187
-
3188
-
3189
-
3190
-
3191
-
3192
-
3193
-
3194
-
3195
-
3196
-
3197
-
3198
-
3199
-
3200
-
3201
-
3202
- <div class="details-item-container">
3203
- <dt class="tag-source">Source:</dt>
3204
- <dd class="tag-source"><ul class="dummy"><li>
3205
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line80">line 80</a>
3206
- </li></ul></dd>
3207
- </div>
3208
-
3209
-
3210
-
3211
-
3212
-
3213
-
3214
-
3215
- </dl>
3216
-
3217
-
3218
-
3219
-
3220
-
3221
-
3222
-
3223
-
3224
-
3225
-
3226
-
3227
-
3228
-
3229
-
3230
-
3231
-
3232
-
3233
-
3234
-
3235
-
3236
-
3237
-
3238
-
3239
- <h4 class="name" id=".drawTileScreenSpace">
3240
- <a href="#.drawTileScreenSpace">#</a>
3241
- <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>
3242
- </h4>
3243
-
3244
-
3245
-
3246
-
3247
-
3248
- <div class="description">
3249
- Draw textured tile centered on pos in screen space
3250
- </div>
3251
-
3252
-
3253
-
3254
-
3255
-
3256
-
3257
-
3258
-
3259
-
3260
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3261
- <strong>Parameters:</strong>
3262
-
3263
-
3264
- <table class="params">
3265
- <thead>
3266
- <tr>
3267
-
3268
- <th>Name</th>
3269
-
3270
-
3271
- <th>Type</th>
3272
-
3273
-
3274
- <th>Attributes</th>
3275
-
3276
-
3277
-
3278
- <th>Default</th>
3279
-
3280
-
3281
- <th class="last">Description</th>
3282
- </tr>
3283
- </thead>
3284
-
3285
- <tbody>
3286
-
3287
-
3288
- <tr>
3289
-
3290
- <td class="name"><code>pos</code></td>
3291
-
3292
-
3293
- <td class="type">
3294
-
3295
-
3296
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3297
-
3298
-
3299
-
3300
- </td>
3301
-
3302
-
3303
- <td class="attributes">
3304
-
3305
-
3306
-
3307
-
3308
-
3309
- </td>
3310
-
3311
-
3312
-
3313
- <td class="default">
3314
-
3315
- </td>
3316
-
3317
-
3318
- <td class="description last">Center of the tile</td>
3319
- </tr>
3320
-
3321
-
3322
-
3323
- <tr>
3324
-
3325
- <td class="name"><code>size</code></td>
3326
-
3327
-
3328
- <td class="type">
3329
-
3330
-
3331
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3332
-
3333
-
3334
-
3335
- </td>
3336
-
3337
-
3338
- <td class="attributes">
3339
-
3340
- &lt;optional><br>
3341
-
3342
-
3343
-
3344
-
3345
-
3346
- </td>
3347
-
3348
-
3349
-
3350
- <td class="default">
3351
-
3352
- new Vector2(1,1)
3353
-
3354
- </td>
3355
-
3356
-
3357
- <td class="description last">Size of the tile</td>
3358
- </tr>
3359
-
3360
-
3361
-
3362
- <tr>
3363
-
3364
- <td class="name"><code>tileIndex</code></td>
3365
-
3366
-
3367
- <td class="type">
3368
-
3369
-
3370
- <span class="param-type">Number</span>
3371
-
3372
-
3373
-
3374
- </td>
3375
-
3376
-
3377
- <td class="attributes">
3378
-
3379
- &lt;optional><br>
3380
-
3381
-
3382
-
3383
-
3384
-
3385
- </td>
3386
-
3387
-
3388
-
3389
- <td class="default">
3390
-
3391
- -1
3392
-
3393
- </td>
3394
-
3395
-
3396
- <td class="description last">Tile index to use, negative is untextured</td>
3397
- </tr>
3398
-
3399
-
3400
-
3401
- <tr>
3402
-
3403
- <td class="name"><code>tileSize</code></td>
3404
-
3405
-
3406
- <td class="type">
3407
-
3408
-
3409
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3410
-
3411
-
3412
-
3413
- </td>
3414
-
3415
-
3416
- <td class="attributes">
3417
-
3418
- &lt;optional><br>
3419
-
3420
-
3421
-
3422
-
3423
-
3424
- </td>
3425
-
3426
-
3427
-
3428
- <td class="default">
3429
-
3430
- tileSizeDefault
3431
-
3432
- </td>
3433
-
3434
-
3435
- <td class="description last">Tile size in source pixels</td>
3436
- </tr>
3437
-
3438
-
3439
-
3440
- <tr>
3441
-
3442
- <td class="name"><code>color</code></td>
3443
-
3444
-
3445
- <td class="type">
3446
-
3447
-
3448
- <span class="param-type"><a href="Color.html">Color</a></span>
3449
-
3450
-
3451
-
3452
- </td>
3453
-
3454
-
3455
- <td class="attributes">
3456
-
3457
- &lt;optional><br>
3458
-
3459
-
3460
-
3461
-
3462
-
3463
- </td>
3464
-
3465
-
3466
-
3467
- <td class="default">
3468
-
3469
- new Color
3470
-
3471
- </td>
3472
-
3473
-
3474
- <td class="description last"></td>
3475
- </tr>
3476
-
3477
-
3478
-
3479
- <tr>
3480
-
3481
- <td class="name"><code>angle</code></td>
3482
-
3483
-
3484
- <td class="type">
3485
-
3486
-
3487
- <span class="param-type">Number</span>
3488
-
3489
-
3490
-
3491
- </td>
3492
-
3493
-
3494
- <td class="attributes">
3495
-
3496
- &lt;optional><br>
3497
-
3498
-
3499
-
3500
-
3501
-
3502
- </td>
3503
-
3504
-
3505
-
3506
- <td class="default">
3507
-
3508
- 0
3509
-
3510
- </td>
3511
-
3512
-
3513
- <td class="description last"></td>
3514
- </tr>
3515
-
3516
-
3517
-
3518
- <tr>
3519
-
3520
- <td class="name"><code>mirror</code></td>
3521
-
3522
-
3523
- <td class="type">
3524
-
3525
-
3526
- <span class="param-type">Boolean</span>
3527
-
3528
-
3529
-
3530
- </td>
3531
-
3532
-
3533
- <td class="attributes">
3534
-
3535
- &lt;optional><br>
3536
-
3537
-
3538
-
3539
-
3540
-
3541
- </td>
3542
-
3543
-
3544
-
3545
- <td class="default">
3546
-
3547
- 0
3548
-
3549
- </td>
3550
-
3551
-
3552
- <td class="description last"></td>
3553
- </tr>
3554
-
3555
-
3556
-
3557
- <tr>
3558
-
3559
- <td class="name"><code>additiveColor</code></td>
3560
-
3561
-
3562
- <td class="type">
3563
-
3564
-
3565
- <span class="param-type"><a href="Color.html">Color</a></span>
3566
-
3567
-
3568
-
3569
- </td>
3570
-
3571
-
3572
- <td class="attributes">
3573
-
3574
- &lt;optional><br>
3575
-
3576
-
3577
-
3578
-
3579
-
3580
- </td>
3581
-
3582
-
3583
-
3584
- <td class="default">
3585
-
3586
- new Color(0,0,0,0)
3587
-
3588
- </td>
3589
-
3590
-
3591
- <td class="description last"></td>
3592
- </tr>
3593
-
3594
-
3595
-
3596
- <tr>
3597
-
3598
- <td class="name"><code>useWebGL</code></td>
3599
-
3600
-
3601
- <td class="type">
3602
-
3603
-
3604
- <span class="param-type">Boolean</span>
3605
-
3606
-
3607
-
3608
- </td>
3609
-
3610
-
3611
- <td class="attributes">
3612
-
3613
- &lt;optional><br>
3614
-
3615
-
3616
-
3617
-
3618
-
3619
- </td>
3620
-
3621
-
3622
-
3623
- <td class="default">
3624
-
3625
- glEnable
3626
-
3627
- </td>
3628
-
3629
-
3630
- <td class="description last"></td>
3631
- </tr>
3632
-
3633
-
3634
- </tbody>
3635
- </table>
3636
-
3637
- </div>
3638
-
3639
-
3640
-
3641
-
3642
-
3643
-
3644
-
3645
- <dl class="details">
3646
-
3647
-
3648
-
3649
-
3650
-
3651
-
3652
-
3653
-
3654
-
3655
-
3656
-
3657
-
3658
-
3659
-
3660
-
3661
-
3662
-
3663
-
3664
-
3665
-
3666
-
3667
-
3668
-
3669
-
3670
-
3671
-
3672
- <div class="details-item-container">
3673
- <dt class="tag-source">Source:</dt>
3674
- <dd class="tag-source"><ul class="dummy"><li>
3675
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line154">line 154</a>
3676
- </li></ul></dd>
3677
- </div>
3678
-
3679
-
3680
-
3681
-
3682
-
3683
-
3684
-
3685
- </dl>
3686
-
3687
-
3688
-
3689
-
3690
-
3691
-
3692
-
3693
-
3694
-
3695
-
3696
-
3697
-
3698
-
3699
-
3700
-
3701
-
3702
-
3703
-
3704
-
3705
-
3706
-
3707
-
3708
-
3709
- <h4 class="name" id=".isFullscreen">
3710
- <a href="#.isFullscreen">#</a>
3711
- <span class="type-signature">(static) </span>isFullscreen<span class="signature">()</span><span class="type-signature"> &rarr; {Boolean}</span>
3712
- </h4>
3713
-
3714
-
3715
-
3716
-
3717
-
3718
- <div class="description">
3719
- Returns true if fullscreen mode is active
3720
- </div>
3721
-
3722
-
3723
-
3724
-
3725
-
3726
-
3727
-
3728
-
3729
-
3730
-
3731
-
3732
-
3733
-
3734
-
3735
-
3736
- <dl class="details">
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
-
3763
- <div class="details-item-container">
3764
- <dt class="tag-source">Source:</dt>
3765
- <dd class="tag-source"><ul class="dummy"><li>
3766
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line360">line 360</a>
3767
- </li></ul></dd>
3768
- </div>
3769
-
3770
-
3771
-
3772
-
3773
-
3774
-
3775
-
3776
- </dl>
3777
-
3778
-
3779
-
3780
-
3781
-
3782
-
3783
-
3784
-
3785
-
3786
-
3787
-
3788
-
3789
-
3790
-
3791
-
3792
- <div class="method-member-container mt-20">
3793
- <strong>Returns:</strong>
3794
-
3795
-
3796
-
3797
-
3798
- <dl class="param-type">
3799
- <dt>
3800
- Type
3801
- </dt>
3802
- <dd>
3803
-
3804
- <span class="param-type">Boolean</span>
3805
-
3806
-
3807
- </dd>
3808
- </dl>
3809
-
3810
-
3811
- </div>
3812
-
3813
-
3814
-
3815
-
3816
-
3817
-
3818
-
3819
-
3820
-
3821
- <h4 class="name" id=".screenToWorld">
3822
- <a href="#.screenToWorld">#</a>
3823
- <span class="type-signature">(static) </span>screenToWorld<span class="signature">(screenPos)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3824
- </h4>
3825
-
3826
-
3827
-
3828
-
3829
-
3830
- <div class="description">
3831
- Convert from screen to world space coordinates
3832
- </div>
3833
-
3834
-
3835
-
3836
-
3837
-
3838
-
3839
-
3840
-
3841
-
3842
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3843
- <strong>Parameters:</strong>
3844
-
3845
-
3846
- <table class="params">
3847
- <thead>
3848
- <tr>
3849
-
3850
- <th>Name</th>
3851
-
3852
-
3853
- <th>Type</th>
3854
-
3855
-
3856
-
3857
-
3858
-
3859
- <th class="last">Description</th>
3860
- </tr>
3861
- </thead>
3862
-
3863
- <tbody>
3864
-
3865
-
3866
- <tr>
3867
-
3868
- <td class="name"><code>screenPos</code></td>
3869
-
3870
-
3871
- <td class="type">
3872
-
3873
-
3874
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3875
-
3876
-
3877
-
3878
- </td>
3879
-
3880
-
3881
-
3882
-
3883
-
3884
- <td class="description last"></td>
3885
- </tr>
3886
-
3887
-
3888
- </tbody>
3889
- </table>
3890
-
3891
- </div>
3892
-
3893
-
3894
-
3895
-
3896
-
3897
-
3898
-
3899
- <dl class="details">
3900
-
3901
-
3902
-
3903
-
3904
-
3905
-
3906
-
3907
-
3908
-
3909
-
3910
-
3911
-
3912
-
3913
-
3914
-
3915
-
3916
-
3917
-
3918
-
3919
-
3920
-
3921
-
3922
-
3923
-
3924
-
3925
-
3926
- <div class="details-item-container">
3927
- <dt class="tag-source">Source:</dt>
3928
- <dd class="tag-source"><ul class="dummy"><li>
3929
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line59">line 59</a>
3930
- </li></ul></dd>
3931
- </div>
3932
-
3933
-
3934
-
3935
-
3936
-
3937
-
3938
-
3939
- </dl>
3940
-
3941
-
3942
-
3943
-
3944
-
3945
-
3946
-
3947
-
3948
-
3949
-
3950
-
3951
-
3952
-
3953
-
3954
-
3955
- <div class="method-member-container mt-20">
3956
- <strong>Returns:</strong>
3957
-
3958
-
3959
-
3960
-
3961
- <dl class="param-type">
3962
- <dt>
3963
- Type
3964
- </dt>
3965
- <dd>
3966
-
3967
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3968
-
3969
-
3970
- </dd>
3971
- </dl>
3972
-
3973
-
3974
- </div>
3975
-
3976
-
3977
-
3978
-
3979
-
3980
-
3981
-
3982
-
3983
-
3984
- <h4 class="name" id=".setBlendMode">
3985
- <a href="#.setBlendMode">#</a>
3986
- <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>
3987
- </h4>
3988
-
3989
-
3990
-
3991
-
3992
-
3993
- <div class="description">
3994
- Enable normal or additive blend mode
3995
- </div>
3996
-
3997
-
3998
-
3999
-
4000
-
4001
-
4002
-
4003
-
4004
-
4005
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
4006
- <strong>Parameters:</strong>
4007
-
4008
-
4009
- <table class="params">
4010
- <thead>
4011
- <tr>
4012
-
4013
- <th>Name</th>
4014
-
4015
-
4016
- <th>Type</th>
4017
-
4018
-
4019
- <th>Attributes</th>
4020
-
4021
-
4022
-
4023
- <th>Default</th>
4024
-
4025
-
4026
- <th class="last">Description</th>
4027
- </tr>
4028
- </thead>
4029
-
4030
- <tbody>
4031
-
4032
-
4033
- <tr>
4034
-
4035
- <td class="name"><code>additive</code></td>
4036
-
4037
-
4038
- <td class="type">
4039
-
4040
-
4041
- <span class="param-type">Boolean</span>
4042
-
4043
-
4044
-
4045
- </td>
4046
-
4047
-
4048
- <td class="attributes">
4049
-
4050
- &lt;optional><br>
4051
-
4052
-
4053
-
4054
-
4055
-
4056
- </td>
4057
-
4058
-
4059
-
4060
- <td class="default">
4061
-
4062
- 0
4063
-
4064
- </td>
4065
-
4066
-
4067
- <td class="description last"></td>
4068
- </tr>
4069
-
4070
-
4071
-
4072
- <tr>
4073
-
4074
- <td class="name"><code>useWebGL</code></td>
4075
-
4076
-
4077
- <td class="type">
4078
-
4079
-
4080
- <span class="param-type">Boolean</span>
4081
-
4082
-
4083
-
4084
- </td>
4085
-
4086
-
4087
- <td class="attributes">
4088
-
4089
- &lt;optional><br>
4090
-
4091
-
4092
-
4093
-
4094
-
4095
- </td>
4096
-
4097
-
4098
-
4099
- <td class="default">
4100
-
4101
- glEnable
4102
-
4103
- </td>
4104
-
4105
-
4106
- <td class="description last"></td>
4107
- </tr>
4108
-
4109
-
4110
- </tbody>
4111
- </table>
4112
-
4113
- </div>
4114
-
4115
-
4116
-
4117
-
4118
-
4119
-
4120
-
4121
- <dl class="details">
4122
-
4123
-
4124
-
4125
-
4126
-
4127
-
4128
-
4129
-
4130
-
4131
-
4132
-
4133
-
4134
-
4135
-
4136
-
4137
-
4138
-
4139
-
4140
-
4141
-
4142
-
4143
-
4144
-
4145
-
4146
-
4147
-
4148
- <div class="details-item-container">
4149
- <dt class="tag-source">Source:</dt>
4150
- <dd class="tag-source"><ul class="dummy"><li>
4151
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line210">line 210</a>
4152
- </li></ul></dd>
4153
- </div>
4154
-
4155
-
4156
-
4157
-
4158
-
4159
-
4160
-
4161
- </dl>
4162
-
4163
-
4164
-
4165
-
4166
-
4167
-
4168
-
4169
-
4170
-
4171
-
4172
-
4173
-
4174
-
4175
-
4176
-
4177
-
4178
-
4179
-
4180
-
4181
-
4182
-
4183
-
4184
-
4185
- <h4 class="name" id=".toggleFullscreen">
4186
- <a href="#.toggleFullscreen">#</a>
4187
- <span class="type-signature">(static) </span>toggleFullscreen<span class="signature">()</span><span class="type-signature"></span>
4188
- </h4>
4189
-
4190
-
4191
-
4192
-
4193
-
4194
- <div class="description">
4195
- Toggle fullsceen mode
4196
- </div>
4197
-
4198
-
4199
-
4200
-
4201
-
4202
-
4203
-
4204
-
4205
-
4206
-
4207
-
4208
-
4209
-
4210
-
4211
-
4212
- <dl class="details">
4213
-
4214
-
4215
-
4216
-
4217
-
4218
-
4219
-
4220
-
4221
-
4222
-
4223
-
4224
-
4225
-
4226
-
4227
-
4228
-
4229
-
4230
-
4231
-
4232
-
4233
-
4234
-
4235
-
4236
-
4237
-
4238
-
4239
- <div class="details-item-container">
4240
- <dt class="tag-source">Source:</dt>
4241
- <dd class="tag-source"><ul class="dummy"><li>
4242
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line364">line 364</a>
4243
- </li></ul></dd>
4244
- </div>
4245
-
4246
-
4247
-
4248
-
4249
-
4250
-
4251
-
4252
- </dl>
4253
-
4254
-
4255
-
4256
-
4257
-
4258
-
4259
-
4260
-
4261
-
4262
-
4263
-
4264
-
4265
-
4266
-
4267
-
4268
-
4269
-
4270
-
4271
-
4272
-
4273
-
4274
-
4275
-
4276
- <h4 class="name" id=".worldToScreen">
4277
- <a href="#.worldToScreen">#</a>
4278
- <span class="type-signature">(static) </span>worldToScreen<span class="signature">(worldPos)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
4279
- </h4>
4280
-
4281
-
4282
-
4283
-
4284
-
4285
- <div class="description">
4286
- Convert from world to screen space coordinates
4287
- </div>
4288
-
4289
-
4290
-
4291
-
4292
-
4293
-
4294
-
4295
-
4296
-
4297
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
4298
- <strong>Parameters:</strong>
4299
-
4300
-
4301
- <table class="params">
4302
- <thead>
4303
- <tr>
4304
-
4305
- <th>Name</th>
4306
-
4307
-
4308
- <th>Type</th>
4309
-
4310
-
4311
-
4312
-
4313
-
4314
- <th class="last">Description</th>
4315
- </tr>
4316
- </thead>
4317
-
4318
- <tbody>
4319
-
4320
-
4321
- <tr>
4322
-
4323
- <td class="name"><code>worldPos</code></td>
4324
-
4325
-
4326
- <td class="type">
4327
-
4328
-
4329
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
4330
-
4331
-
4332
-
4333
- </td>
4334
-
4335
-
4336
-
4337
-
4338
-
4339
- <td class="description last"></td>
4340
- </tr>
4341
-
4342
-
4343
- </tbody>
4344
- </table>
4345
-
4346
- </div>
4347
-
4348
-
4349
-
4350
-
4351
-
4352
-
4353
-
4354
- <dl class="details">
4355
-
4356
-
4357
-
4358
-
4359
-
4360
-
4361
-
4362
-
4363
-
4364
-
4365
-
4366
-
4367
-
4368
-
4369
-
4370
-
4371
-
4372
-
4373
-
4374
-
4375
-
4376
-
4377
-
4378
-
4379
-
4380
-
4381
- <div class="details-item-container">
4382
- <dt class="tag-source">Source:</dt>
4383
- <dd class="tag-source"><ul class="dummy"><li>
4384
- <a href="engineDraw.js.html">engineDraw.js</a>, <a href="engineDraw.js.html#line66">line 66</a>
4385
- </li></ul></dd>
4386
- </div>
4387
-
4388
-
4389
-
4390
-
4391
-
4392
-
4393
-
4394
- </dl>
4395
-
4396
-
4397
-
4398
-
4399
-
4400
-
4401
-
4402
-
4403
-
4404
-
4405
-
4406
-
4407
-
4408
-
4409
-
4410
- <div class="method-member-container mt-20">
4411
- <strong>Returns:</strong>
4412
-
4413
-
4414
-
4415
-
4416
- <dl class="param-type">
4417
- <dt>
4418
- Type
4419
- </dt>
4420
- <dd>
4421
-
4422
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
4423
-
4424
-
4425
- </dd>
4426
- </dl>
4427
-
4428
-
4429
- </div>
4430
-
4431
-
4432
-
4433
-
4434
-
4435
-
4436
-
4437
-
4438
-
4439
-
4440
- </article>
4441
-
4442
- </section>
4443
-
4444
-
4445
-
4446
-
4447
- </div>
4448
-
4449
- <footer class="footer" id="footer">
4450
- <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
4451
- </footer>
4452
-
4453
- <script src="scripts/third-party/prettify.js"></script>
4454
- <script src="scripts/third-party/lang-css.js"></script>
4455
- <script type="text/javascript" src="scripts/misc.js"></script>
4456
-
4457
- <script>prettyPrint();</script>
4458
- <script src="scripts/linenumber.js"></script>
4459
- <script src="scripts/fix-code-block.js"></script>
4460
- <script src="scripts/fix-navbar.js"></script>
4461
-
4462
- <script src="scripts/search.js"></script>
4463
- <script src="scripts/third-party/fuse.js"></script>
4464
- <script>
4465
- 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#getHSLA","link":"<a href=\"Color.html#getHSLA\">Color &rtrif; getHSLA</a>"},{"title":"Color#hex","link":"<a href=\"Color.html#hex\">Color &rtrif; hex</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#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#setHex","link":"<a href=\"Color.html#setHex\">Color &rtrif; setHex</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":"Color#toString","link":"<a href=\"Color.html#toString\">Color &rtrif; toString</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":"FontImage","link":"<a href=\"FontImage.html\">FontImage</a>"},{"title":"FontImage#drawText","link":"<a href=\"FontImage.html#drawText\">FontImage &rtrif; drawText</a>"},{"title":"FontImage#drawTextScreen","link":"<a href=\"FontImage.html#drawTextScreen\">FontImage &rtrif; drawTextScreen</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#toString","link":"<a href=\"Timer.html#toString\">Timer &rtrif; toString</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#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":"Vector2#toString","link":"<a href=\"Vector2.html#toString\">Vector2 &rtrif; toString</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.drawTextScreen","link":"<a href=\"Draw.html#.drawTextScreen\">Draw.drawTextScreen &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":"Input.vibrate","link":"<a href=\"Input.html#.vibrate\">Input.vibrate &rtrif; undefined</a>"},{"title":"Input.vibrateStop","link":"<a href=\"Input.html#.vibrateStop\">Input.vibrateStop &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":"engineFontImage","link":"<a href=\"global.html#engineFontImage\">engineFontImage</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":"engineObjectsCollide","link":"<a href=\"global.html#engineObjectsCollide\">engineObjectsCollide</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":"frame","link":"<a href=\"global.html#frame\">frame</a>"},{"title":"frameRate","link":"<a href=\"global.html#frameRate\">frameRate</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>"}];
4466
- var options =
4467
- setupSearch(list, options)
4468
- </script>
4469
-
4470
-
4471
-
4472
-
4473
-
4474
-
4475
-
4476
-
4477
-
4478
-
4479
-
4480
- </body>
4481
-
4482
- </html>