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/Color.html DELETED
@@ -1,3376 +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
- Color
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
- Color
108
- </h1>
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
- <section>
117
-
118
-
119
- <header>
120
-
121
-
122
- <h2>
123
-
124
- Color
125
-
126
- </h2>
127
-
128
-
129
- <div class="class-description">Color object (red, green, blue, alpha) with some helpful functions</div>
130
-
131
-
132
- </header>
133
-
134
-
135
- <article>
136
- <div class="container-overview">
137
-
138
-
139
-
140
-
141
- <h2>Constructor</h2>
142
-
143
-
144
- <h4 class="name" id="Color">
145
- <a href="#Color">#</a>
146
- <span class="type-signature"></span>new Color<span class="signature">(red<span class="signature-attributes">opt</span>, green<span class="signature-attributes">opt</span>, blue<span class="signature-attributes">opt</span>, alpha<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
147
- </h4>
148
-
149
-
150
-
151
-
152
-
153
- <div class="description">
154
- Create a color with the components passed in, white by default
155
- </div>
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
166
- <strong>Parameters:</strong>
167
-
168
-
169
- <table class="params">
170
- <thead>
171
- <tr>
172
-
173
- <th>Name</th>
174
-
175
-
176
- <th>Type</th>
177
-
178
-
179
- <th>Attributes</th>
180
-
181
-
182
-
183
- <th>Default</th>
184
-
185
-
186
- <th class="last">Description</th>
187
- </tr>
188
- </thead>
189
-
190
- <tbody>
191
-
192
-
193
- <tr>
194
-
195
- <td class="name"><code>red</code></td>
196
-
197
-
198
- <td class="type">
199
-
200
-
201
- <span class="param-type">Number</span>
202
-
203
-
204
-
205
- </td>
206
-
207
-
208
- <td class="attributes">
209
-
210
- &lt;optional><br>
211
-
212
-
213
-
214
-
215
-
216
- </td>
217
-
218
-
219
-
220
- <td class="default">
221
-
222
- 1
223
-
224
- </td>
225
-
226
-
227
- <td class="description last"></td>
228
- </tr>
229
-
230
-
231
-
232
- <tr>
233
-
234
- <td class="name"><code>green</code></td>
235
-
236
-
237
- <td class="type">
238
-
239
-
240
- <span class="param-type">Number</span>
241
-
242
-
243
-
244
- </td>
245
-
246
-
247
- <td class="attributes">
248
-
249
- &lt;optional><br>
250
-
251
-
252
-
253
-
254
-
255
- </td>
256
-
257
-
258
-
259
- <td class="default">
260
-
261
- 1
262
-
263
- </td>
264
-
265
-
266
- <td class="description last"></td>
267
- </tr>
268
-
269
-
270
-
271
- <tr>
272
-
273
- <td class="name"><code>blue</code></td>
274
-
275
-
276
- <td class="type">
277
-
278
-
279
- <span class="param-type">Number</span>
280
-
281
-
282
-
283
- </td>
284
-
285
-
286
- <td class="attributes">
287
-
288
- &lt;optional><br>
289
-
290
-
291
-
292
-
293
-
294
- </td>
295
-
296
-
297
-
298
- <td class="default">
299
-
300
- 1
301
-
302
- </td>
303
-
304
-
305
- <td class="description last"></td>
306
- </tr>
307
-
308
-
309
-
310
- <tr>
311
-
312
- <td class="name"><code>alpha</code></td>
313
-
314
-
315
- <td class="type">
316
-
317
-
318
- <span class="param-type">Number</span>
319
-
320
-
321
-
322
- </td>
323
-
324
-
325
- <td class="attributes">
326
-
327
- &lt;optional><br>
328
-
329
-
330
-
331
-
332
-
333
- </td>
334
-
335
-
336
-
337
- <td class="default">
338
-
339
- 1
340
-
341
- </td>
342
-
343
-
344
- <td class="description last"></td>
345
- </tr>
346
-
347
-
348
- </tbody>
349
- </table>
350
-
351
- </div>
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
- <dl class="details">
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
- <div class="details-item-container">
387
- <dt class="tag-source">Source:</dt>
388
- <dd class="tag-source"><ul class="dummy"><li>
389
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line332">line 332</a>
390
- </li></ul></dd>
391
- </div>
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
- </dl>
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
418
- <strong>Example</strong>
419
-
420
- <div class="rel">
421
- <pre class="prettyprint"><code>let a = new Color; // white
422
-
423
-
424
- </div>
425
-
426
- </div>
427
-
428
-
429
-
430
- </div>
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
- <h3 class="subsection-title">Members</h3>
444
-
445
-
446
-
447
- <h4 class="name" id="a">
448
- <a href="#a">#</a>
449
- <span class="type-signature"></span>a<span class="type-signature"></span>
450
- </h4>
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
- <h5 class="subsection-title">Properties</h5>
463
-
464
-
465
- <div class="allow-overflow">
466
- <table class="props">
467
- <thead>
468
- <tr>
469
-
470
-
471
- <th>Type</th>
472
-
473
-
474
-
475
-
476
-
477
- <th class="last">Description</th>
478
- </tr>
479
- </thead>
480
-
481
- <tbody>
482
-
483
-
484
- <tr>
485
-
486
-
487
- <td class="type">
488
-
489
-
490
- <span class="param-type">Number</span>
491
-
492
-
493
-
494
- </td>
495
-
496
-
497
-
498
-
499
-
500
- <td class="description last">Alpha</td>
501
- </tr>
502
-
503
-
504
- </tbody>
505
- </table>
506
- </div>
507
-
508
-
509
-
510
-
511
-
512
- <dl class="details">
513
-
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
- <div class="details-item-container">
540
- <dt class="tag-source">Source:</dt>
541
- <dd class="tag-source"><ul class="dummy"><li>
542
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line348">line 348</a>
543
- </li></ul></dd>
544
- </div>
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
- </dl>
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
- <h4 class="name" id="b">
564
- <a href="#b">#</a>
565
- <span class="type-signature"></span>b<span class="type-signature"></span>
566
- </h4>
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
- <h5 class="subsection-title">Properties</h5>
579
-
580
-
581
- <div class="allow-overflow">
582
- <table class="props">
583
- <thead>
584
- <tr>
585
-
586
-
587
- <th>Type</th>
588
-
589
-
590
-
591
-
592
-
593
- <th class="last">Description</th>
594
- </tr>
595
- </thead>
596
-
597
- <tbody>
598
-
599
-
600
- <tr>
601
-
602
-
603
- <td class="type">
604
-
605
-
606
- <span class="param-type">Number</span>
607
-
608
-
609
-
610
- </td>
611
-
612
-
613
-
614
-
615
-
616
- <td class="description last">Blue</td>
617
- </tr>
618
-
619
-
620
- </tbody>
621
- </table>
622
- </div>
623
-
624
-
625
-
626
-
627
-
628
- <dl class="details">
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
- <div class="details-item-container">
656
- <dt class="tag-source">Source:</dt>
657
- <dd class="tag-source"><ul class="dummy"><li>
658
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line346">line 346</a>
659
- </li></ul></dd>
660
- </div>
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
- </dl>
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
- <h4 class="name" id="g">
680
- <a href="#g">#</a>
681
- <span class="type-signature"></span>g<span class="type-signature"></span>
682
- </h4>
683
-
684
-
685
-
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
-
694
- <h5 class="subsection-title">Properties</h5>
695
-
696
-
697
- <div class="allow-overflow">
698
- <table class="props">
699
- <thead>
700
- <tr>
701
-
702
-
703
- <th>Type</th>
704
-
705
-
706
-
707
-
708
-
709
- <th class="last">Description</th>
710
- </tr>
711
- </thead>
712
-
713
- <tbody>
714
-
715
-
716
- <tr>
717
-
718
-
719
- <td class="type">
720
-
721
-
722
- <span class="param-type">Number</span>
723
-
724
-
725
-
726
- </td>
727
-
728
-
729
-
730
-
731
-
732
- <td class="description last">Green</td>
733
- </tr>
734
-
735
-
736
- </tbody>
737
- </table>
738
- </div>
739
-
740
-
741
-
742
-
743
-
744
- <dl class="details">
745
-
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
-
768
-
769
-
770
-
771
- <div class="details-item-container">
772
- <dt class="tag-source">Source:</dt>
773
- <dd class="tag-source"><ul class="dummy"><li>
774
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line344">line 344</a>
775
- </li></ul></dd>
776
- </div>
777
-
778
-
779
-
780
-
781
-
782
-
783
-
784
- </dl>
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
- <h4 class="name" id="r">
796
- <a href="#r">#</a>
797
- <span class="type-signature"></span>r<span class="type-signature"></span>
798
- </h4>
799
-
800
-
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
- <h5 class="subsection-title">Properties</h5>
811
-
812
-
813
- <div class="allow-overflow">
814
- <table class="props">
815
- <thead>
816
- <tr>
817
-
818
-
819
- <th>Type</th>
820
-
821
-
822
-
823
-
824
-
825
- <th class="last">Description</th>
826
- </tr>
827
- </thead>
828
-
829
- <tbody>
830
-
831
-
832
- <tr>
833
-
834
-
835
- <td class="type">
836
-
837
-
838
- <span class="param-type">Number</span>
839
-
840
-
841
-
842
- </td>
843
-
844
-
845
-
846
-
847
-
848
- <td class="description last">Red</td>
849
- </tr>
850
-
851
-
852
- </tbody>
853
- </table>
854
- </div>
855
-
856
-
857
-
858
-
859
-
860
- <dl class="details">
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
-
886
-
887
- <div class="details-item-container">
888
- <dt class="tag-source">Source:</dt>
889
- <dd class="tag-source"><ul class="dummy"><li>
890
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line342">line 342</a>
891
- </li></ul></dd>
892
- </div>
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
- </dl>
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
- <h3 class="subsection-title">Methods</h3>
914
-
915
-
916
-
917
-
918
-
919
-
920
- <h4 class="name" id="add">
921
- <a href="#add">#</a>
922
- <span class="type-signature"></span>add<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
923
- </h4>
924
-
925
-
926
-
927
-
928
-
929
- <div class="description">
930
- Returns a copy of this color plus the color passed in
931
- </div>
932
-
933
-
934
-
935
-
936
-
937
-
938
-
939
-
940
-
941
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
942
- <strong>Parameters:</strong>
943
-
944
-
945
- <table class="params">
946
- <thead>
947
- <tr>
948
-
949
- <th>Name</th>
950
-
951
-
952
- <th>Type</th>
953
-
954
-
955
-
956
-
957
-
958
- <th class="last">Description</th>
959
- </tr>
960
- </thead>
961
-
962
- <tbody>
963
-
964
-
965
- <tr>
966
-
967
- <td class="name"><code>color</code></td>
968
-
969
-
970
- <td class="type">
971
-
972
-
973
- <span class="param-type"><a href="Color.html">Color</a></span>
974
-
975
-
976
-
977
- </td>
978
-
979
-
980
-
981
-
982
-
983
- <td class="description last"></td>
984
- </tr>
985
-
986
-
987
- </tbody>
988
- </table>
989
-
990
- </div>
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
- <dl class="details">
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
-
1018
-
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
- <div class="details-item-container">
1026
- <dt class="tag-source">Source:</dt>
1027
- <dd class="tag-source"><ul class="dummy"><li>
1028
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line358">line 358</a>
1029
- </li></ul></dd>
1030
- </div>
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
-
1038
- </dl>
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
-
1053
-
1054
- <div class="method-member-container mt-20">
1055
- <strong>Returns:</strong>
1056
-
1057
-
1058
-
1059
-
1060
- <dl class="param-type">
1061
- <dt>
1062
- Type
1063
- </dt>
1064
- <dd>
1065
-
1066
- <span class="param-type"><a href="Color.html">Color</a></span>
1067
-
1068
-
1069
- </dd>
1070
- </dl>
1071
-
1072
-
1073
- </div>
1074
-
1075
-
1076
-
1077
-
1078
-
1079
-
1080
-
1081
-
1082
-
1083
- <h4 class="name" id="clamp">
1084
- <a href="#clamp">#</a>
1085
- <span class="type-signature"></span>clamp<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
1086
- </h4>
1087
-
1088
-
1089
-
1090
-
1091
-
1092
- <div class="description">
1093
- Returns a copy of this color clamped to the valid range between 0 and 1
1094
- </div>
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
- <dl class="details">
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
- <div class="details-item-container">
1138
- <dt class="tag-source">Source:</dt>
1139
- <dd class="tag-source"><ul class="dummy"><li>
1140
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line383">line 383</a>
1141
- </li></ul></dd>
1142
- </div>
1143
-
1144
-
1145
-
1146
-
1147
-
1148
-
1149
-
1150
- </dl>
1151
-
1152
-
1153
-
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
-
1164
-
1165
-
1166
- <div class="method-member-container mt-20">
1167
- <strong>Returns:</strong>
1168
-
1169
-
1170
-
1171
-
1172
- <dl class="param-type">
1173
- <dt>
1174
- Type
1175
- </dt>
1176
- <dd>
1177
-
1178
- <span class="param-type"><a href="Color.html">Color</a></span>
1179
-
1180
-
1181
- </dd>
1182
- </dl>
1183
-
1184
-
1185
- </div>
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
- <h4 class="name" id="copy">
1196
- <a href="#copy">#</a>
1197
- <span class="type-signature"></span>copy<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
1198
- </h4>
1199
-
1200
-
1201
-
1202
-
1203
-
1204
- <div class="description">
1205
- Returns a new color that is a copy of this
1206
- </div>
1207
-
1208
-
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
-
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
- <dl class="details">
1223
-
1224
-
1225
-
1226
-
1227
-
1228
-
1229
-
1230
-
1231
-
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
-
1241
-
1242
-
1243
-
1244
-
1245
-
1246
-
1247
-
1248
-
1249
- <div class="details-item-container">
1250
- <dt class="tag-source">Source:</dt>
1251
- <dd class="tag-source"><ul class="dummy"><li>
1252
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line353">line 353</a>
1253
- </li></ul></dd>
1254
- </div>
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
- </dl>
1263
-
1264
-
1265
-
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
-
1274
-
1275
-
1276
-
1277
-
1278
- <div class="method-member-container mt-20">
1279
- <strong>Returns:</strong>
1280
-
1281
-
1282
-
1283
-
1284
- <dl class="param-type">
1285
- <dt>
1286
- Type
1287
- </dt>
1288
- <dd>
1289
-
1290
- <span class="param-type"><a href="Color.html">Color</a></span>
1291
-
1292
-
1293
- </dd>
1294
- </dl>
1295
-
1296
-
1297
- </div>
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
- <h4 class="name" id="divide">
1308
- <a href="#divide">#</a>
1309
- <span class="type-signature"></span>divide<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
1310
- </h4>
1311
-
1312
-
1313
-
1314
-
1315
-
1316
- <div class="description">
1317
- Returns a copy of this color divided by the color passed in
1318
- </div>
1319
-
1320
-
1321
-
1322
-
1323
-
1324
-
1325
-
1326
-
1327
-
1328
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1329
- <strong>Parameters:</strong>
1330
-
1331
-
1332
- <table class="params">
1333
- <thead>
1334
- <tr>
1335
-
1336
- <th>Name</th>
1337
-
1338
-
1339
- <th>Type</th>
1340
-
1341
-
1342
-
1343
-
1344
-
1345
- <th class="last">Description</th>
1346
- </tr>
1347
- </thead>
1348
-
1349
- <tbody>
1350
-
1351
-
1352
- <tr>
1353
-
1354
- <td class="name"><code>color</code></td>
1355
-
1356
-
1357
- <td class="type">
1358
-
1359
-
1360
- <span class="param-type"><a href="Color.html">Color</a></span>
1361
-
1362
-
1363
-
1364
- </td>
1365
-
1366
-
1367
-
1368
-
1369
-
1370
- <td class="description last"></td>
1371
- </tr>
1372
-
1373
-
1374
- </tbody>
1375
- </table>
1376
-
1377
- </div>
1378
-
1379
-
1380
-
1381
-
1382
-
1383
-
1384
-
1385
- <dl class="details">
1386
-
1387
-
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
-
1395
-
1396
-
1397
-
1398
-
1399
-
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
- <div class="details-item-container">
1413
- <dt class="tag-source">Source:</dt>
1414
- <dd class="tag-source"><ul class="dummy"><li>
1415
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line373">line 373</a>
1416
- </li></ul></dd>
1417
- </div>
1418
-
1419
-
1420
-
1421
-
1422
-
1423
-
1424
-
1425
- </dl>
1426
-
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
-
1435
-
1436
-
1437
-
1438
-
1439
-
1440
-
1441
- <div class="method-member-container mt-20">
1442
- <strong>Returns:</strong>
1443
-
1444
-
1445
-
1446
-
1447
- <dl class="param-type">
1448
- <dt>
1449
- Type
1450
- </dt>
1451
- <dd>
1452
-
1453
- <span class="param-type"><a href="Color.html">Color</a></span>
1454
-
1455
-
1456
- </dd>
1457
- </dl>
1458
-
1459
-
1460
- </div>
1461
-
1462
-
1463
-
1464
-
1465
-
1466
-
1467
-
1468
-
1469
-
1470
- <h4 class="name" id="getHSLA">
1471
- <a href="#getHSLA">#</a>
1472
- <span class="type-signature"></span>getHSLA<span class="signature">()</span><span class="type-signature"> &rarr; {Array}</span>
1473
- </h4>
1474
-
1475
-
1476
-
1477
-
1478
-
1479
- <div class="description">
1480
- Returns this color expressed in hsla format
1481
- </div>
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
- <dl class="details">
1498
-
1499
-
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
-
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
-
1514
-
1515
-
1516
-
1517
-
1518
-
1519
-
1520
-
1521
-
1522
-
1523
-
1524
- <div class="details-item-container">
1525
- <dt class="tag-source">Source:</dt>
1526
- <dd class="tag-source"><ul class="dummy"><li>
1527
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line453">line 453</a>
1528
- </li></ul></dd>
1529
- </div>
1530
-
1531
-
1532
-
1533
-
1534
-
1535
-
1536
-
1537
- </dl>
1538
-
1539
-
1540
-
1541
-
1542
-
1543
-
1544
-
1545
-
1546
-
1547
-
1548
-
1549
-
1550
-
1551
-
1552
-
1553
- <div class="method-member-container mt-20">
1554
- <strong>Returns:</strong>
1555
-
1556
-
1557
-
1558
-
1559
- <dl class="param-type">
1560
- <dt>
1561
- Type
1562
- </dt>
1563
- <dd>
1564
-
1565
- <span class="param-type">Array</span>
1566
-
1567
-
1568
- </dd>
1569
- </dl>
1570
-
1571
-
1572
- </div>
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
-
1580
-
1581
-
1582
- <h4 class="name" id="hex">
1583
- <a href="#hex">#</a>
1584
- <span class="type-signature"></span>hex<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span>
1585
- </h4>
1586
-
1587
-
1588
-
1589
-
1590
-
1591
- <div class="description">
1592
- Returns this color expressed as a hex code
1593
- </div>
1594
-
1595
-
1596
-
1597
-
1598
-
1599
-
1600
-
1601
-
1602
-
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
- <dl class="details">
1610
-
1611
-
1612
-
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
- <div class="details-item-container">
1637
- <dt class="tag-source">Source:</dt>
1638
- <dd class="tag-source"><ul class="dummy"><li>
1639
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line445">line 445</a>
1640
- </li></ul></dd>
1641
- </div>
1642
-
1643
-
1644
-
1645
-
1646
-
1647
-
1648
-
1649
- </dl>
1650
-
1651
-
1652
-
1653
-
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
- <div class="method-member-container mt-20">
1666
- <strong>Returns:</strong>
1667
-
1668
-
1669
-
1670
-
1671
- <dl class="param-type">
1672
- <dt>
1673
- Type
1674
- </dt>
1675
- <dd>
1676
-
1677
- <span class="param-type">String</span>
1678
-
1679
-
1680
- </dd>
1681
- </dl>
1682
-
1683
-
1684
- </div>
1685
-
1686
-
1687
-
1688
-
1689
-
1690
-
1691
-
1692
-
1693
-
1694
- <h4 class="name" id="lerp">
1695
- <a href="#lerp">#</a>
1696
- <span class="type-signature"></span>lerp<span class="signature">(color, percent)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
1697
- </h4>
1698
-
1699
-
1700
-
1701
-
1702
-
1703
- <div class="description">
1704
- Returns a new color that is p percent between this and the color passed in
1705
- </div>
1706
-
1707
-
1708
-
1709
-
1710
-
1711
-
1712
-
1713
-
1714
-
1715
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1716
- <strong>Parameters:</strong>
1717
-
1718
-
1719
- <table class="params">
1720
- <thead>
1721
- <tr>
1722
-
1723
- <th>Name</th>
1724
-
1725
-
1726
- <th>Type</th>
1727
-
1728
-
1729
-
1730
-
1731
-
1732
- <th class="last">Description</th>
1733
- </tr>
1734
- </thead>
1735
-
1736
- <tbody>
1737
-
1738
-
1739
- <tr>
1740
-
1741
- <td class="name"><code>color</code></td>
1742
-
1743
-
1744
- <td class="type">
1745
-
1746
-
1747
- <span class="param-type"><a href="Color.html">Color</a></span>
1748
-
1749
-
1750
-
1751
- </td>
1752
-
1753
-
1754
-
1755
-
1756
-
1757
- <td class="description last"></td>
1758
- </tr>
1759
-
1760
-
1761
-
1762
- <tr>
1763
-
1764
- <td class="name"><code>percent</code></td>
1765
-
1766
-
1767
- <td class="type">
1768
-
1769
-
1770
- <span class="param-type">Number</span>
1771
-
1772
-
1773
-
1774
- </td>
1775
-
1776
-
1777
-
1778
-
1779
-
1780
- <td class="description last"></td>
1781
- </tr>
1782
-
1783
-
1784
- </tbody>
1785
- </table>
1786
-
1787
- </div>
1788
-
1789
-
1790
-
1791
-
1792
-
1793
-
1794
-
1795
- <dl class="details">
1796
-
1797
-
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
-
1806
-
1807
-
1808
-
1809
-
1810
-
1811
-
1812
-
1813
-
1814
-
1815
-
1816
-
1817
-
1818
-
1819
-
1820
-
1821
-
1822
- <div class="details-item-container">
1823
- <dt class="tag-source">Source:</dt>
1824
- <dd class="tag-source"><ul class="dummy"><li>
1825
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line389">line 389</a>
1826
- </li></ul></dd>
1827
- </div>
1828
-
1829
-
1830
-
1831
-
1832
-
1833
-
1834
-
1835
- </dl>
1836
-
1837
-
1838
-
1839
-
1840
-
1841
-
1842
-
1843
-
1844
-
1845
-
1846
-
1847
-
1848
-
1849
-
1850
-
1851
- <div class="method-member-container mt-20">
1852
- <strong>Returns:</strong>
1853
-
1854
-
1855
-
1856
-
1857
- <dl class="param-type">
1858
- <dt>
1859
- Type
1860
- </dt>
1861
- <dd>
1862
-
1863
- <span class="param-type"><a href="Color.html">Color</a></span>
1864
-
1865
-
1866
- </dd>
1867
- </dl>
1868
-
1869
-
1870
- </div>
1871
-
1872
-
1873
-
1874
-
1875
-
1876
-
1877
-
1878
-
1879
-
1880
- <h4 class="name" id="multiply">
1881
- <a href="#multiply">#</a>
1882
- <span class="type-signature"></span>multiply<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
1883
- </h4>
1884
-
1885
-
1886
-
1887
-
1888
-
1889
- <div class="description">
1890
- Returns a copy of this color times the color passed in
1891
- </div>
1892
-
1893
-
1894
-
1895
-
1896
-
1897
-
1898
-
1899
-
1900
-
1901
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1902
- <strong>Parameters:</strong>
1903
-
1904
-
1905
- <table class="params">
1906
- <thead>
1907
- <tr>
1908
-
1909
- <th>Name</th>
1910
-
1911
-
1912
- <th>Type</th>
1913
-
1914
-
1915
-
1916
-
1917
-
1918
- <th class="last">Description</th>
1919
- </tr>
1920
- </thead>
1921
-
1922
- <tbody>
1923
-
1924
-
1925
- <tr>
1926
-
1927
- <td class="name"><code>color</code></td>
1928
-
1929
-
1930
- <td class="type">
1931
-
1932
-
1933
- <span class="param-type"><a href="Color.html">Color</a></span>
1934
-
1935
-
1936
-
1937
- </td>
1938
-
1939
-
1940
-
1941
-
1942
-
1943
- <td class="description last"></td>
1944
- </tr>
1945
-
1946
-
1947
- </tbody>
1948
- </table>
1949
-
1950
- </div>
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
- <dl class="details">
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
-
1970
-
1971
-
1972
-
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
-
1980
-
1981
-
1982
-
1983
-
1984
-
1985
- <div class="details-item-container">
1986
- <dt class="tag-source">Source:</dt>
1987
- <dd class="tag-source"><ul class="dummy"><li>
1988
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line368">line 368</a>
1989
- </li></ul></dd>
1990
- </div>
1991
-
1992
-
1993
-
1994
-
1995
-
1996
-
1997
-
1998
- </dl>
1999
-
2000
-
2001
-
2002
-
2003
-
2004
-
2005
-
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
-
2013
-
2014
- <div class="method-member-container mt-20">
2015
- <strong>Returns:</strong>
2016
-
2017
-
2018
-
2019
-
2020
- <dl class="param-type">
2021
- <dt>
2022
- Type
2023
- </dt>
2024
- <dd>
2025
-
2026
- <span class="param-type"><a href="Color.html">Color</a></span>
2027
-
2028
-
2029
- </dd>
2030
- </dl>
2031
-
2032
-
2033
- </div>
2034
-
2035
-
2036
-
2037
-
2038
-
2039
-
2040
-
2041
-
2042
-
2043
- <h4 class="name" id="mutate">
2044
- <a href="#mutate">#</a>
2045
- <span class="type-signature"></span>mutate<span class="signature">(amount<span class="signature-attributes">opt</span>, alphaAmount<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
2046
- </h4>
2047
-
2048
-
2049
-
2050
-
2051
-
2052
- <div class="description">
2053
- Returns a new color that has each component randomly adjusted
2054
- </div>
2055
-
2056
-
2057
-
2058
-
2059
-
2060
-
2061
-
2062
-
2063
-
2064
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2065
- <strong>Parameters:</strong>
2066
-
2067
-
2068
- <table class="params">
2069
- <thead>
2070
- <tr>
2071
-
2072
- <th>Name</th>
2073
-
2074
-
2075
- <th>Type</th>
2076
-
2077
-
2078
- <th>Attributes</th>
2079
-
2080
-
2081
-
2082
- <th>Default</th>
2083
-
2084
-
2085
- <th class="last">Description</th>
2086
- </tr>
2087
- </thead>
2088
-
2089
- <tbody>
2090
-
2091
-
2092
- <tr>
2093
-
2094
- <td class="name"><code>amount</code></td>
2095
-
2096
-
2097
- <td class="type">
2098
-
2099
-
2100
- <span class="param-type">Number</span>
2101
-
2102
-
2103
-
2104
- </td>
2105
-
2106
-
2107
- <td class="attributes">
2108
-
2109
- &lt;optional><br>
2110
-
2111
-
2112
-
2113
-
2114
-
2115
- </td>
2116
-
2117
-
2118
-
2119
- <td class="default">
2120
-
2121
- .05
2122
-
2123
- </td>
2124
-
2125
-
2126
- <td class="description last"></td>
2127
- </tr>
2128
-
2129
-
2130
-
2131
- <tr>
2132
-
2133
- <td class="name"><code>alphaAmount</code></td>
2134
-
2135
-
2136
- <td class="type">
2137
-
2138
-
2139
- <span class="param-type">Number</span>
2140
-
2141
-
2142
-
2143
- </td>
2144
-
2145
-
2146
- <td class="attributes">
2147
-
2148
- &lt;optional><br>
2149
-
2150
-
2151
-
2152
-
2153
-
2154
- </td>
2155
-
2156
-
2157
-
2158
- <td class="default">
2159
-
2160
- 0
2161
-
2162
- </td>
2163
-
2164
-
2165
- <td class="description last"></td>
2166
- </tr>
2167
-
2168
-
2169
- </tbody>
2170
- </table>
2171
-
2172
- </div>
2173
-
2174
-
2175
-
2176
-
2177
-
2178
-
2179
-
2180
- <dl class="details">
2181
-
2182
-
2183
-
2184
-
2185
-
2186
-
2187
-
2188
-
2189
-
2190
-
2191
-
2192
-
2193
-
2194
-
2195
-
2196
-
2197
-
2198
-
2199
-
2200
-
2201
-
2202
-
2203
-
2204
-
2205
-
2206
-
2207
- <div class="details-item-container">
2208
- <dt class="tag-source">Source:</dt>
2209
- <dd class="tag-source"><ul class="dummy"><li>
2210
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line416">line 416</a>
2211
- </li></ul></dd>
2212
- </div>
2213
-
2214
-
2215
-
2216
-
2217
-
2218
-
2219
-
2220
- </dl>
2221
-
2222
-
2223
-
2224
-
2225
-
2226
-
2227
-
2228
-
2229
-
2230
-
2231
-
2232
-
2233
-
2234
-
2235
-
2236
- <div class="method-member-container mt-20">
2237
- <strong>Returns:</strong>
2238
-
2239
-
2240
-
2241
-
2242
- <dl class="param-type">
2243
- <dt>
2244
- Type
2245
- </dt>
2246
- <dd>
2247
-
2248
- <span class="param-type"><a href="Color.html">Color</a></span>
2249
-
2250
-
2251
- </dd>
2252
- </dl>
2253
-
2254
-
2255
- </div>
2256
-
2257
-
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
- <h4 class="name" id="rgbaInt">
2266
- <a href="#rgbaInt">#</a>
2267
- <span class="type-signature"></span>rgbaInt<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
2268
- </h4>
2269
-
2270
-
2271
-
2272
-
2273
-
2274
- <div class="description">
2275
- Returns this color expressed as 32 bit integer RGBA value
2276
- </div>
2277
-
2278
-
2279
-
2280
-
2281
-
2282
-
2283
-
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
- <dl class="details">
2293
-
2294
-
2295
-
2296
-
2297
-
2298
-
2299
-
2300
-
2301
-
2302
-
2303
-
2304
-
2305
-
2306
-
2307
-
2308
-
2309
-
2310
-
2311
-
2312
-
2313
-
2314
-
2315
-
2316
-
2317
-
2318
-
2319
- <div class="details-item-container">
2320
- <dt class="tag-source">Source:</dt>
2321
- <dd class="tag-source"><ul class="dummy"><li>
2322
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line437">line 437</a>
2323
- </li></ul></dd>
2324
- </div>
2325
-
2326
-
2327
-
2328
-
2329
-
2330
-
2331
-
2332
- </dl>
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
- <div class="method-member-container mt-20">
2349
- <strong>Returns:</strong>
2350
-
2351
-
2352
-
2353
-
2354
- <dl class="param-type">
2355
- <dt>
2356
- Type
2357
- </dt>
2358
- <dd>
2359
-
2360
- <span class="param-type">Number</span>
2361
-
2362
-
2363
- </dd>
2364
- </dl>
2365
-
2366
-
2367
- </div>
2368
-
2369
-
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
- <h4 class="name" id="scale">
2378
- <a href="#scale">#</a>
2379
- <span class="type-signature"></span>scale<span class="signature">(scale, alphaScale<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
2380
- </h4>
2381
-
2382
-
2383
-
2384
-
2385
-
2386
- <div class="description">
2387
- Returns a copy of this color scaled by the value passed in, alpha can be scaled separately
2388
- </div>
2389
-
2390
-
2391
-
2392
-
2393
-
2394
-
2395
-
2396
-
2397
-
2398
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2399
- <strong>Parameters:</strong>
2400
-
2401
-
2402
- <table class="params">
2403
- <thead>
2404
- <tr>
2405
-
2406
- <th>Name</th>
2407
-
2408
-
2409
- <th>Type</th>
2410
-
2411
-
2412
- <th>Attributes</th>
2413
-
2414
-
2415
-
2416
- <th>Default</th>
2417
-
2418
-
2419
- <th class="last">Description</th>
2420
- </tr>
2421
- </thead>
2422
-
2423
- <tbody>
2424
-
2425
-
2426
- <tr>
2427
-
2428
- <td class="name"><code>scale</code></td>
2429
-
2430
-
2431
- <td class="type">
2432
-
2433
-
2434
- <span class="param-type">Number</span>
2435
-
2436
-
2437
-
2438
- </td>
2439
-
2440
-
2441
- <td class="attributes">
2442
-
2443
-
2444
-
2445
-
2446
-
2447
- </td>
2448
-
2449
-
2450
-
2451
- <td class="default">
2452
-
2453
- </td>
2454
-
2455
-
2456
- <td class="description last"></td>
2457
- </tr>
2458
-
2459
-
2460
-
2461
- <tr>
2462
-
2463
- <td class="name"><code>alphaScale</code></td>
2464
-
2465
-
2466
- <td class="type">
2467
-
2468
-
2469
- <span class="param-type">Number</span>
2470
-
2471
-
2472
-
2473
- </td>
2474
-
2475
-
2476
- <td class="attributes">
2477
-
2478
- &lt;optional><br>
2479
-
2480
-
2481
-
2482
-
2483
-
2484
- </td>
2485
-
2486
-
2487
-
2488
- <td class="default">
2489
-
2490
- scale
2491
-
2492
- </td>
2493
-
2494
-
2495
- <td class="description last"></td>
2496
- </tr>
2497
-
2498
-
2499
- </tbody>
2500
- </table>
2501
-
2502
- </div>
2503
-
2504
-
2505
-
2506
-
2507
-
2508
-
2509
-
2510
- <dl class="details">
2511
-
2512
-
2513
-
2514
-
2515
-
2516
-
2517
-
2518
-
2519
-
2520
-
2521
-
2522
-
2523
-
2524
-
2525
-
2526
-
2527
-
2528
-
2529
-
2530
-
2531
-
2532
-
2533
-
2534
-
2535
-
2536
-
2537
- <div class="details-item-container">
2538
- <dt class="tag-source">Source:</dt>
2539
- <dd class="tag-source"><ul class="dummy"><li>
2540
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line379">line 379</a>
2541
- </li></ul></dd>
2542
- </div>
2543
-
2544
-
2545
-
2546
-
2547
-
2548
-
2549
-
2550
- </dl>
2551
-
2552
-
2553
-
2554
-
2555
-
2556
-
2557
-
2558
-
2559
-
2560
-
2561
-
2562
-
2563
-
2564
-
2565
-
2566
- <div class="method-member-container mt-20">
2567
- <strong>Returns:</strong>
2568
-
2569
-
2570
-
2571
-
2572
- <dl class="param-type">
2573
- <dt>
2574
- Type
2575
- </dt>
2576
- <dd>
2577
-
2578
- <span class="param-type"><a href="Color.html">Color</a></span>
2579
-
2580
-
2581
- </dd>
2582
- </dl>
2583
-
2584
-
2585
- </div>
2586
-
2587
-
2588
-
2589
-
2590
-
2591
-
2592
-
2593
-
2594
-
2595
- <h4 class="name" id="setHex">
2596
- <a href="#setHex">#</a>
2597
- <span class="type-signature"></span>setHex<span class="signature">(hex)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
2598
- </h4>
2599
-
2600
-
2601
-
2602
-
2603
-
2604
- <div class="description">
2605
- Set this color from a hex code
2606
- </div>
2607
-
2608
-
2609
-
2610
-
2611
-
2612
-
2613
-
2614
-
2615
-
2616
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2617
- <strong>Parameters:</strong>
2618
-
2619
-
2620
- <table class="params">
2621
- <thead>
2622
- <tr>
2623
-
2624
- <th>Name</th>
2625
-
2626
-
2627
- <th>Type</th>
2628
-
2629
-
2630
-
2631
-
2632
-
2633
- <th class="last">Description</th>
2634
- </tr>
2635
- </thead>
2636
-
2637
- <tbody>
2638
-
2639
-
2640
- <tr>
2641
-
2642
- <td class="name"><code>hex</code></td>
2643
-
2644
-
2645
- <td class="type">
2646
-
2647
-
2648
- <span class="param-type">String</span>
2649
-
2650
-
2651
-
2652
- </td>
2653
-
2654
-
2655
-
2656
-
2657
-
2658
- <td class="description last">html hex code</td>
2659
- </tr>
2660
-
2661
-
2662
- </tbody>
2663
- </table>
2664
-
2665
- </div>
2666
-
2667
-
2668
-
2669
-
2670
-
2671
-
2672
-
2673
- <dl class="details">
2674
-
2675
-
2676
-
2677
-
2678
-
2679
-
2680
-
2681
-
2682
-
2683
-
2684
-
2685
-
2686
-
2687
-
2688
-
2689
-
2690
-
2691
-
2692
-
2693
-
2694
-
2695
-
2696
-
2697
-
2698
-
2699
-
2700
- <div class="details-item-container">
2701
- <dt class="tag-source">Source:</dt>
2702
- <dd class="tag-source"><ul class="dummy"><li>
2703
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line482">line 482</a>
2704
- </li></ul></dd>
2705
- </div>
2706
-
2707
-
2708
-
2709
-
2710
-
2711
-
2712
-
2713
- </dl>
2714
-
2715
-
2716
-
2717
-
2718
-
2719
-
2720
-
2721
-
2722
-
2723
-
2724
-
2725
-
2726
-
2727
-
2728
-
2729
- <div class="method-member-container mt-20">
2730
- <strong>Returns:</strong>
2731
-
2732
-
2733
-
2734
-
2735
- <dl class="param-type">
2736
- <dt>
2737
- Type
2738
- </dt>
2739
- <dd>
2740
-
2741
- <span class="param-type"><a href="Color.html">Color</a></span>
2742
-
2743
-
2744
- </dd>
2745
- </dl>
2746
-
2747
-
2748
- </div>
2749
-
2750
-
2751
-
2752
-
2753
-
2754
-
2755
-
2756
-
2757
-
2758
- <h4 class="name" id="setHSLA">
2759
- <a href="#setHSLA">#</a>
2760
- <span class="type-signature"></span>setHSLA<span class="signature">(hue<span class="signature-attributes">opt</span>, saturation<span class="signature-attributes">opt</span>, lightness<span class="signature-attributes">opt</span>, alpha<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
2761
- </h4>
2762
-
2763
-
2764
-
2765
-
2766
-
2767
- <div class="description">
2768
- Sets this color given a hue, saturation, lightness, and alpha
2769
- </div>
2770
-
2771
-
2772
-
2773
-
2774
-
2775
-
2776
-
2777
-
2778
-
2779
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2780
- <strong>Parameters:</strong>
2781
-
2782
-
2783
- <table class="params">
2784
- <thead>
2785
- <tr>
2786
-
2787
- <th>Name</th>
2788
-
2789
-
2790
- <th>Type</th>
2791
-
2792
-
2793
- <th>Attributes</th>
2794
-
2795
-
2796
-
2797
- <th>Default</th>
2798
-
2799
-
2800
- <th class="last">Description</th>
2801
- </tr>
2802
- </thead>
2803
-
2804
- <tbody>
2805
-
2806
-
2807
- <tr>
2808
-
2809
- <td class="name"><code>hue</code></td>
2810
-
2811
-
2812
- <td class="type">
2813
-
2814
-
2815
- <span class="param-type">Number</span>
2816
-
2817
-
2818
-
2819
- </td>
2820
-
2821
-
2822
- <td class="attributes">
2823
-
2824
- &lt;optional><br>
2825
-
2826
-
2827
-
2828
-
2829
-
2830
- </td>
2831
-
2832
-
2833
-
2834
- <td class="default">
2835
-
2836
- 0
2837
-
2838
- </td>
2839
-
2840
-
2841
- <td class="description last"></td>
2842
- </tr>
2843
-
2844
-
2845
-
2846
- <tr>
2847
-
2848
- <td class="name"><code>saturation</code></td>
2849
-
2850
-
2851
- <td class="type">
2852
-
2853
-
2854
- <span class="param-type">Number</span>
2855
-
2856
-
2857
-
2858
- </td>
2859
-
2860
-
2861
- <td class="attributes">
2862
-
2863
- &lt;optional><br>
2864
-
2865
-
2866
-
2867
-
2868
-
2869
- </td>
2870
-
2871
-
2872
-
2873
- <td class="default">
2874
-
2875
- 0
2876
-
2877
- </td>
2878
-
2879
-
2880
- <td class="description last"></td>
2881
- </tr>
2882
-
2883
-
2884
-
2885
- <tr>
2886
-
2887
- <td class="name"><code>lightness</code></td>
2888
-
2889
-
2890
- <td class="type">
2891
-
2892
-
2893
- <span class="param-type">Number</span>
2894
-
2895
-
2896
-
2897
- </td>
2898
-
2899
-
2900
- <td class="attributes">
2901
-
2902
- &lt;optional><br>
2903
-
2904
-
2905
-
2906
-
2907
-
2908
- </td>
2909
-
2910
-
2911
-
2912
- <td class="default">
2913
-
2914
- 1
2915
-
2916
- </td>
2917
-
2918
-
2919
- <td class="description last"></td>
2920
- </tr>
2921
-
2922
-
2923
-
2924
- <tr>
2925
-
2926
- <td class="name"><code>alpha</code></td>
2927
-
2928
-
2929
- <td class="type">
2930
-
2931
-
2932
- <span class="param-type">Number</span>
2933
-
2934
-
2935
-
2936
- </td>
2937
-
2938
-
2939
- <td class="attributes">
2940
-
2941
- &lt;optional><br>
2942
-
2943
-
2944
-
2945
-
2946
-
2947
- </td>
2948
-
2949
-
2950
-
2951
- <td class="default">
2952
-
2953
- 1
2954
-
2955
- </td>
2956
-
2957
-
2958
- <td class="description last"></td>
2959
- </tr>
2960
-
2961
-
2962
- </tbody>
2963
- </table>
2964
-
2965
- </div>
2966
-
2967
-
2968
-
2969
-
2970
-
2971
-
2972
-
2973
- <dl class="details">
2974
-
2975
-
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
-
2983
-
2984
-
2985
-
2986
-
2987
-
2988
-
2989
-
2990
-
2991
-
2992
-
2993
-
2994
-
2995
-
2996
-
2997
-
2998
-
2999
-
3000
- <div class="details-item-container">
3001
- <dt class="tag-source">Source:</dt>
3002
- <dd class="tag-source"><ul class="dummy"><li>
3003
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line397">line 397</a>
3004
- </li></ul></dd>
3005
- </div>
3006
-
3007
-
3008
-
3009
-
3010
-
3011
-
3012
-
3013
- </dl>
3014
-
3015
-
3016
-
3017
-
3018
-
3019
-
3020
-
3021
-
3022
-
3023
-
3024
-
3025
-
3026
-
3027
-
3028
-
3029
- <div class="method-member-container mt-20">
3030
- <strong>Returns:</strong>
3031
-
3032
-
3033
-
3034
-
3035
- <dl class="param-type">
3036
- <dt>
3037
- Type
3038
- </dt>
3039
- <dd>
3040
-
3041
- <span class="param-type"><a href="Color.html">Color</a></span>
3042
-
3043
-
3044
- </dd>
3045
- </dl>
3046
-
3047
-
3048
- </div>
3049
-
3050
-
3051
-
3052
-
3053
-
3054
-
3055
-
3056
-
3057
-
3058
- <h4 class="name" id="subtract">
3059
- <a href="#subtract">#</a>
3060
- <span class="type-signature"></span>subtract<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
3061
- </h4>
3062
-
3063
-
3064
-
3065
-
3066
-
3067
- <div class="description">
3068
- Returns a copy of this color minus the color passed in
3069
- </div>
3070
-
3071
-
3072
-
3073
-
3074
-
3075
-
3076
-
3077
-
3078
-
3079
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3080
- <strong>Parameters:</strong>
3081
-
3082
-
3083
- <table class="params">
3084
- <thead>
3085
- <tr>
3086
-
3087
- <th>Name</th>
3088
-
3089
-
3090
- <th>Type</th>
3091
-
3092
-
3093
-
3094
-
3095
-
3096
- <th class="last">Description</th>
3097
- </tr>
3098
- </thead>
3099
-
3100
- <tbody>
3101
-
3102
-
3103
- <tr>
3104
-
3105
- <td class="name"><code>color</code></td>
3106
-
3107
-
3108
- <td class="type">
3109
-
3110
-
3111
- <span class="param-type"><a href="Color.html">Color</a></span>
3112
-
3113
-
3114
-
3115
- </td>
3116
-
3117
-
3118
-
3119
-
3120
-
3121
- <td class="description last"></td>
3122
- </tr>
3123
-
3124
-
3125
- </tbody>
3126
- </table>
3127
-
3128
- </div>
3129
-
3130
-
3131
-
3132
-
3133
-
3134
-
3135
-
3136
- <dl class="details">
3137
-
3138
-
3139
-
3140
-
3141
-
3142
-
3143
-
3144
-
3145
-
3146
-
3147
-
3148
-
3149
-
3150
-
3151
-
3152
-
3153
-
3154
-
3155
-
3156
-
3157
-
3158
-
3159
-
3160
-
3161
-
3162
-
3163
- <div class="details-item-container">
3164
- <dt class="tag-source">Source:</dt>
3165
- <dd class="tag-source"><ul class="dummy"><li>
3166
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line363">line 363</a>
3167
- </li></ul></dd>
3168
- </div>
3169
-
3170
-
3171
-
3172
-
3173
-
3174
-
3175
-
3176
- </dl>
3177
-
3178
-
3179
-
3180
-
3181
-
3182
-
3183
-
3184
-
3185
-
3186
-
3187
-
3188
-
3189
-
3190
-
3191
-
3192
- <div class="method-member-container mt-20">
3193
- <strong>Returns:</strong>
3194
-
3195
-
3196
-
3197
-
3198
- <dl class="param-type">
3199
- <dt>
3200
- Type
3201
- </dt>
3202
- <dd>
3203
-
3204
- <span class="param-type"><a href="Color.html">Color</a></span>
3205
-
3206
-
3207
- </dd>
3208
- </dl>
3209
-
3210
-
3211
- </div>
3212
-
3213
-
3214
-
3215
-
3216
-
3217
-
3218
-
3219
-
3220
-
3221
- <h4 class="name" id="toString">
3222
- <a href="#toString">#</a>
3223
- <span class="type-signature"></span>toString<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span>
3224
- </h4>
3225
-
3226
-
3227
-
3228
-
3229
-
3230
- <div class="description">
3231
- Returns this color expressed as an CSS color value
3232
- </div>
3233
-
3234
-
3235
-
3236
-
3237
-
3238
-
3239
-
3240
-
3241
-
3242
-
3243
-
3244
-
3245
-
3246
-
3247
-
3248
- <dl class="details">
3249
-
3250
-
3251
-
3252
-
3253
-
3254
-
3255
-
3256
-
3257
-
3258
-
3259
-
3260
-
3261
-
3262
-
3263
-
3264
-
3265
-
3266
-
3267
-
3268
-
3269
-
3270
-
3271
-
3272
-
3273
-
3274
-
3275
- <div class="details-item-container">
3276
- <dt class="tag-source">Source:</dt>
3277
- <dd class="tag-source"><ul class="dummy"><li>
3278
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line429">line 429</a>
3279
- </li></ul></dd>
3280
- </div>
3281
-
3282
-
3283
-
3284
-
3285
-
3286
-
3287
-
3288
- </dl>
3289
-
3290
-
3291
-
3292
-
3293
-
3294
-
3295
-
3296
-
3297
-
3298
-
3299
-
3300
-
3301
-
3302
-
3303
-
3304
- <div class="method-member-container mt-20">
3305
- <strong>Returns:</strong>
3306
-
3307
-
3308
-
3309
-
3310
- <dl class="param-type">
3311
- <dt>
3312
- Type
3313
- </dt>
3314
- <dd>
3315
-
3316
- <span class="param-type">String</span>
3317
-
3318
-
3319
- </dd>
3320
- </dl>
3321
-
3322
-
3323
- </div>
3324
-
3325
-
3326
-
3327
-
3328
-
3329
-
3330
-
3331
-
3332
-
3333
-
3334
- </article>
3335
-
3336
- </section>
3337
-
3338
-
3339
-
3340
-
3341
- </div>
3342
-
3343
- <footer class="footer" id="footer">
3344
- <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
3345
- </footer>
3346
-
3347
- <script src="scripts/third-party/prettify.js"></script>
3348
- <script src="scripts/third-party/lang-css.js"></script>
3349
- <script type="text/javascript" src="scripts/misc.js"></script>
3350
-
3351
- <script>prettyPrint();</script>
3352
- <script src="scripts/linenumber.js"></script>
3353
- <script src="scripts/fix-code-block.js"></script>
3354
- <script src="scripts/fix-navbar.js"></script>
3355
-
3356
- <script src="scripts/search.js"></script>
3357
- <script src="scripts/third-party/fuse.js"></script>
3358
- <script>
3359
- 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>"}];
3360
- var options =
3361
- setupSearch(list, options)
3362
- </script>
3363
-
3364
-
3365
-
3366
-
3367
-
3368
-
3369
-
3370
-
3371
-
3372
-
3373
-
3374
- </body>
3375
-
3376
- </html>