littlejsengine 1.1.2 → 1.1.3

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 (94) hide show
  1. package/README.md +55 -0
  2. package/build.bat +2 -1
  3. package/engine/engine.all.js +1320 -930
  4. package/engine/engine.all.min.js +1 -1
  5. package/engine/engine.all.release.js +965 -601
  6. package/engine/engine.js +71 -60
  7. package/engine/engineAudio.js +80 -22
  8. package/engine/engineBuild.bat +2 -2
  9. package/engine/engineDebug.js +65 -36
  10. package/engine/engineDraw.js +71 -56
  11. package/engine/engineInput.js +178 -28
  12. package/engine/engineMedals.js +66 -58
  13. package/engine/engineObject.js +86 -71
  14. package/engine/engineParticles.js +101 -63
  15. package/engine/engineRelease.js +4 -1
  16. package/engine/engineSettings.js +62 -53
  17. package/engine/engineTileLayer.js +99 -83
  18. package/engine/engineUtilities.js +95 -59
  19. package/engine/engineWebGL.js +53 -48
  20. package/examples/breakout/game.js +1 -1
  21. package/examples/breakout/gameObjects.js +2 -2
  22. package/examples/breakout/index.html +7 -5
  23. package/examples/platformer/game.js +7 -4
  24. package/examples/platformer/gameEffects.js +8 -11
  25. package/examples/platformer/gameLevel.js +15 -8
  26. package/examples/platformer/gameObjects.js +2 -2
  27. package/examples/platformer/gamePlayer.js +6 -6
  28. package/examples/platformer/index.html +10 -8
  29. package/examples/puzzle/game.js +3 -3
  30. package/examples/puzzle/index.html +6 -4
  31. package/examples/stress/index.html +7 -5
  32. package/game.js +10 -10
  33. package/index.html +17 -15
  34. package/package.json +4 -7
  35. package/tiles.png +0 -0
  36. package/LittleJS.zip +0 -0
  37. package/docs/Audio.html +0 -2264
  38. package/docs/Color.html +0 -2506
  39. package/docs/Debug.html +0 -2929
  40. package/docs/Draw.html +0 -3854
  41. package/docs/EngineObject.html +0 -2506
  42. package/docs/Input.html +0 -2478
  43. package/docs/Medal.html +0 -992
  44. package/docs/Medals.html +0 -624
  45. package/docs/Music.html +0 -569
  46. package/docs/Newgrounds.html +0 -1384
  47. package/docs/Particle.html +0 -567
  48. package/docs/ParticleEmitter.html +0 -1537
  49. package/docs/Random.html +0 -1770
  50. package/docs/Settings.html +0 -2885
  51. package/docs/Sound.html +0 -998
  52. package/docs/TileLayer.html +0 -3211
  53. package/docs/TileLayerData.html +0 -569
  54. package/docs/Timer.html +0 -1168
  55. package/docs/Utilities.html +0 -3266
  56. package/docs/Vector2.html +0 -3956
  57. package/docs/WebGL.html +0 -1842
  58. package/docs/engine.js.html +0 -428
  59. package/docs/engineAudio.js.html +0 -567
  60. package/docs/engineDebug.js.html +0 -721
  61. package/docs/engineDraw.js.html +0 -409
  62. package/docs/engineInput.js.html +0 -397
  63. package/docs/engineMedals.js.html +0 -445
  64. package/docs/engineObject.js.html +0 -492
  65. package/docs/engineParticles.js.html +0 -399
  66. package/docs/engineSettings.js.html +0 -358
  67. package/docs/engineTileLayer.js.html +0 -482
  68. package/docs/engineUtilities.js.html +0 -600
  69. package/docs/engineWebGL.js.html +0 -507
  70. package/docs/fonts/MavenPro-Regular.ttf +0 -0
  71. package/docs/fonts/Montserrat-Regular.ttf +0 -0
  72. package/docs/fonts/Muli-Black.ttf +0 -0
  73. package/docs/fonts/OFL-hind.txt +0 -93
  74. package/docs/fonts/OFL-montserrat.txt +0 -93
  75. package/docs/global.html +0 -1635
  76. package/docs/index.html +0 -243
  77. package/docs/scripts/fix-code-block.js +0 -53
  78. package/docs/scripts/fix-navbar.js +0 -25
  79. package/docs/scripts/linenumber.js +0 -25
  80. package/docs/scripts/misc.js +0 -217
  81. package/docs/scripts/resize.js +0 -85
  82. package/docs/scripts/search.js +0 -83
  83. package/docs/scripts/third-party/Apache-License-2.0.txt +0 -202
  84. package/docs/scripts/third-party/fuse.js +0 -9
  85. package/docs/scripts/third-party/lang-css.js +0 -2
  86. package/docs/scripts/third-party/prettify.js +0 -28
  87. package/docs/static/favicon.png +0 -0
  88. package/docs/styles/clean-jsdoc-theme-base.css +0 -393
  89. package/docs/styles/clean-jsdoc-theme-dark.css +0 -324
  90. package/docs/styles/clean-jsdoc-theme-light.css +0 -319
  91. package/docs/styles/reset.css +0 -346
  92. package/docs/styles/third-party/ionicons.min.css +0 -11
  93. package/docs/styles/third-party/prettify-jsdoc.css +0 -111
  94. package/docs/styles/third-party/prettify-tomorrow.css +0 -5
package/docs/Color.html DELETED
@@ -1,2506 +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
- <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
49
- style="display:none">
50
- <defs>
51
- <symbol id="copy-icon" viewbox="0 0 488.3 488.3">
52
- <g>
53
- <path
54
- 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" />
55
- <path
56
- 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" />
57
- </g>
58
- </symbol>
59
- <symbol id='search-icon' viewBox="0 0 512 512">
60
- <g>
61
- <g>
62
- <path
63
- 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" />
64
- </g>
65
- </g>
66
- <g>
67
- <g>
68
- <path
69
- 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" />
70
- </g>
71
- </g>
72
- </symbol>
73
- <symbol id="down-icon" viewBox="0 0 16 16">
74
- <path
75
- fill-rule="evenodd"
76
- clip-rule="evenodd"
77
- 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"
78
- >
79
- </path>
80
- </symbol>
81
- </defs>
82
- </svg>
83
- </head>
84
-
85
- <body>
86
-
87
- <nav class="navbar" id="navbar">
88
- <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="540523" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=8248353><div class="accordion-heading child"><a href="Color.html">Color</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Color.html#add">add</a></li><li data-type='method'><a href="Color.html#clamp">clamp</a></li><li data-type='method'><a href="Color.html#copy">copy</a></li><li data-type='method'><a href="Color.html#divide">divide</a></li><li data-type='method'><a href="Color.html#lerp">lerp</a></li><li data-type='method'><a href="Color.html#multiply">multiply</a></li><li data-type='method'><a href="Color.html#mutate">mutate</a></li><li data-type='method'><a href="Color.html#rgba">rgba</a></li><li data-type='method'><a href="Color.html#rgbaInt">rgbaInt</a></li><li data-type='method'><a href="Color.html#scale">scale</a></li><li data-type='method'><a href="Color.html#setHSLA">setHSLA</a></li><li data-type='method'><a href="Color.html#subtract">subtract</a></li></ul></li><li class="accordion collapsed child" id=7012587><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=1700789><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=8089268><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=4766582><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=6250424><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#render">render</a></li></ul></li><li class="accordion collapsed child" id=7561663><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#emitParticle">emitParticle</a></li><li data-type='method'><a href="ParticleEmitter.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=6303578><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=3741597><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#.getTileCollisionData">getTileCollisionData</a></li><li data-type='method'><a href="TileLayer.html#.initTileCollision">initTileCollision</a></li><li data-type='method'><a href="TileLayer.html#.setTileCollisionData">setTileCollisionData</a></li><li data-type='method'><a href="TileLayer.html#.tileCollisionRaycast">tileCollisionRaycast</a></li><li data-type='method'><a href="TileLayer.html#.tileCollisionTest">tileCollisionTest</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#getData">getData</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#setData">setData</a></li></ul></li><li class="accordion collapsed child" id=3051435><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=2107764><div class="accordion-heading child"><a href="Timer.html">Timer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Timer.html#active">active</a></li><li data-type='method'><a href="Timer.html#elapsed">elapsed</a></li><li data-type='method'><a href="Timer.html#get">get</a></li><li data-type='method'><a href="Timer.html#getPercent">getPercent</a></li><li data-type='method'><a href="Timer.html#isSet">isSet</a></li><li data-type='method'><a href="Timer.html#set">set</a></li><li data-type='method'><a href="Timer.html#unset">unset</a></li></ul></li><li class="accordion collapsed child" id=576602><div class="accordion-heading child"><a href="Vector2.html">Vector2</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Vector2.html#add">add</a></li><li data-type='method'><a href="Vector2.html#angle">angle</a></li><li data-type='method'><a href="Vector2.html#area">area</a></li><li data-type='method'><a href="Vector2.html#arrayCheck">arrayCheck</a></li><li data-type='method'><a href="Vector2.html#clampLength">clampLength</a></li><li data-type='method'><a href="Vector2.html#copy">copy</a></li><li data-type='method'><a href="Vector2.html#cross">cross</a></li><li data-type='method'><a href="Vector2.html#direction">direction</a></li><li data-type='method'><a href="Vector2.html#distance">distance</a></li><li data-type='method'><a href="Vector2.html#distanceSquared">distanceSquared</a></li><li data-type='method'><a href="Vector2.html#divide">divide</a></li><li data-type='method'><a href="Vector2.html#dot">dot</a></li><li data-type='method'><a href="Vector2.html#flip">flip</a></li><li data-type='method'><a href="Vector2.html#floor">floor</a></li><li data-type='method'><a href="Vector2.html#invert">invert</a></li><li data-type='method'><a href="Vector2.html#length">length</a></li><li data-type='method'><a href="Vector2.html#lengthSquared">lengthSquared</a></li><li data-type='method'><a href="Vector2.html#lerp">lerp</a></li><li data-type='method'><a href="Vector2.html#multiply">multiply</a></li><li data-type='method'><a href="Vector2.html#normalize">normalize</a></li><li data-type='method'><a href="Vector2.html#rotate">rotate</a></li><li data-type='method'><a href="Vector2.html#scale">scale</a></li><li data-type='method'><a href="Vector2.html#setAngle">setAngle</a></li><li data-type='method'><a href="Vector2.html#subtract">subtract</a></li></ul></li></ul> </div><div class="accordion collapsed" id="917139" > <h3 class="accordion-heading">Namespaces<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=8875598><div class="accordion-heading child"><a href="Audio.html">Audio</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Audio.html#.getNoteFrequency">getNoteFrequency</a></li><li data-type='method'><a href="Audio.html#.playAudioFile">playAudioFile</a></li><li data-type='method'><a href="Audio.html#.playSamples">playSamples</a></li><li data-type='method'><a href="Audio.html#.speak">speak</a></li><li data-type='method'><a href="Audio.html#.stopSpeech">stopSpeech</a></li><li data-type='method'><a href="Audio.html#.zzfx">zzfx</a></li><li data-type='method'><a href="Audio.html#.zzfxG">zzfxG</a></li><li data-type='method'><a href="Audio.html#.zzfxM">zzfxM</a></li></ul></li><li class="accordion collapsed child" id=822126><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=1368174><div class="accordion-heading child"><a href="Draw.html">Draw</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Draw.html#.drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="Draw.html#.drawLine">drawLine</a></li><li data-type='method'><a href="Draw.html#.drawRect">drawRect</a></li><li data-type='method'><a href="Draw.html#.drawRectScreenSpace">drawRectScreenSpace</a></li><li data-type='method'><a href="Draw.html#.drawText">drawText</a></li><li data-type='method'><a href="Draw.html#.drawTile">drawTile</a></li><li data-type='method'><a href="Draw.html#.drawTileScreenSpace">drawTileScreenSpace</a></li><li data-type='method'><a href="Draw.html#.isFullscreen">isFullscreen</a></li><li data-type='method'><a href="Draw.html#.screenToWorld">screenToWorld</a></li><li data-type='method'><a href="Draw.html#.setBlendMode">setBlendMode</a></li><li data-type='method'><a href="Draw.html#.toggleFullscreen">toggleFullscreen</a></li><li data-type='method'><a href="Draw.html#.worldToScreen">worldToScreen</a></li></ul></li><li class="accordion collapsed child" id=3585023><div class="accordion-heading child"><a href="Input.html">Input</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Input.html#.clearInput">clearInput</a></li><li data-type='method'><a href="Input.html#.gamepadIsDown">gamepadIsDown</a></li><li data-type='method'><a href="Input.html#.gamepadStick">gamepadStick</a></li><li data-type='method'><a href="Input.html#.gamepadWasPressed">gamepadWasPressed</a></li><li data-type='method'><a href="Input.html#.gamepadWasReleased">gamepadWasReleased</a></li><li data-type='method'><a href="Input.html#.keyIsDown">keyIsDown</a></li><li data-type='method'><a href="Input.html#.keyWasPressed">keyWasPressed</a></li><li data-type='method'><a href="Input.html#.keyWasReleased">keyWasReleased</a></li></ul></li><li class="accordion collapsed child" id=4831683><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=7850872><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=1173220><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=6243735><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#.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="3154152" > <h3 class="accordion-heading">Global<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="global.html#engineCollideObjects">engineCollideObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineInit">engineInit</a></li><li class="accordion-list" id=""><a href="global.html#engineName">engineName</a></li><li class="accordion-list" id=""><a href="global.html#engineObjects">engineObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsCallback">engineObjectsCallback</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsDestroy">engineObjectsDestroy</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsUpdate">engineObjectsUpdate</a></li><li class="accordion-list" id=""><a href="global.html#engineVersion">engineVersion</a></li><li class="accordion-list" id=""><a href="global.html#FPS">FPS</a></li><li class="accordion-list" id=""><a href="global.html#frame">frame</a></li><li class="accordion-list" id=""><a href="global.html#paused">paused</a></li><li class="accordion-list" id=""><a href="global.html#time">time</a></li><li class="accordion-list" id=""><a href="global.html#timeDelta">timeDelta</a></li><li class="accordion-list" id=""><a href="global.html#timeReal">timeReal</a></li></ul> </div></div>
89
-
90
-
91
- </nav>
92
- <div class="navbar-ham" id="navbar-ham">
93
- <div>
94
- <div class="first"></div>
95
- <div class="second"></div>
96
- <div class="third"></div>
97
- </div>
98
- </div>
99
-
100
- <div id="main" class="main-content">
101
-
102
- <h1 id='page-title' class="page-title">
103
- Color
104
- </h1>
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <section>
113
-
114
-
115
- <header>
116
-
117
-
118
- <h2>
119
-
120
- Color
121
-
122
- </h2>
123
-
124
-
125
- <div class="class-description">Color object (red, green, blue, alpha) with some helpful functions</div>
126
-
127
-
128
- </header>
129
-
130
-
131
- <article>
132
- <div class="container-overview">
133
-
134
-
135
-
136
-
137
- <h2>Constructor</h2>
138
-
139
-
140
- <h4 class="name" id="Color">
141
- <a href="#Color">#</a>
142
- <span class="type-signature"></span>new Color<span class="signature">(r<span class="signature-attributes">opt</span>, g<span class="signature-attributes">opt</span>, b<span class="signature-attributes">opt</span>, a<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
143
- </h4>
144
-
145
-
146
-
147
-
148
-
149
- <div class="description">
150
- Create a color with the components passed in, white by default
151
- </div>
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
162
- <strong>Parameters:</strong>
163
-
164
-
165
- <table class="params">
166
- <thead>
167
- <tr>
168
-
169
- <th>Name</th>
170
-
171
-
172
- <th>Type</th>
173
-
174
-
175
- <th>Attributes</th>
176
-
177
-
178
-
179
- <th>Default</th>
180
-
181
-
182
- <th class="last">Description</th>
183
- </tr>
184
- </thead>
185
-
186
- <tbody>
187
-
188
-
189
- <tr>
190
-
191
- <td class="name"><code>r</code></td>
192
-
193
-
194
- <td class="type">
195
-
196
-
197
- <span class="param-type">Number</span>
198
-
199
-
200
-
201
- </td>
202
-
203
-
204
- <td class="attributes">
205
-
206
- &lt;optional><br>
207
-
208
-
209
-
210
-
211
-
212
- </td>
213
-
214
-
215
-
216
- <td class="default">
217
-
218
- 1
219
-
220
- </td>
221
-
222
-
223
- <td class="description last">red</td>
224
- </tr>
225
-
226
-
227
-
228
- <tr>
229
-
230
- <td class="name"><code>g</code></td>
231
-
232
-
233
- <td class="type">
234
-
235
-
236
- <span class="param-type">Number</span>
237
-
238
-
239
-
240
- </td>
241
-
242
-
243
- <td class="attributes">
244
-
245
- &lt;optional><br>
246
-
247
-
248
-
249
-
250
-
251
- </td>
252
-
253
-
254
-
255
- <td class="default">
256
-
257
- 1
258
-
259
- </td>
260
-
261
-
262
- <td class="description last">green</td>
263
- </tr>
264
-
265
-
266
-
267
- <tr>
268
-
269
- <td class="name"><code>b</code></td>
270
-
271
-
272
- <td class="type">
273
-
274
-
275
- <span class="param-type">Number</span>
276
-
277
-
278
-
279
- </td>
280
-
281
-
282
- <td class="attributes">
283
-
284
- &lt;optional><br>
285
-
286
-
287
-
288
-
289
-
290
- </td>
291
-
292
-
293
-
294
- <td class="default">
295
-
296
- 1
297
-
298
- </td>
299
-
300
-
301
- <td class="description last">blue</td>
302
- </tr>
303
-
304
-
305
-
306
- <tr>
307
-
308
- <td class="name"><code>a</code></td>
309
-
310
-
311
- <td class="type">
312
-
313
-
314
- <span class="param-type">Number</span>
315
-
316
-
317
-
318
- </td>
319
-
320
-
321
- <td class="attributes">
322
-
323
- &lt;optional><br>
324
-
325
-
326
-
327
-
328
-
329
- </td>
330
-
331
-
332
-
333
- <td class="default">
334
-
335
- 1
336
-
337
- </td>
338
-
339
-
340
- <td class="description last">alpha</td>
341
- </tr>
342
-
343
-
344
- </tbody>
345
- </table>
346
-
347
- </div>
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
- <dl class="details">
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
- <div class="details-item-container">
383
- <dt class="tag-source">Source:</dt>
384
- <dd class="tag-source"><ul class="dummy"><li>
385
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line308">line 308</a>
386
- </li></ul></dd>
387
- </div>
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
- </dl>
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
- </div>
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
- <h3 class="subsection-title">Methods</h3>
431
-
432
-
433
-
434
-
435
-
436
-
437
- <h4 class="name" id="add">
438
- <a href="#add">#</a>
439
- <span class="type-signature"></span>add<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
440
- </h4>
441
-
442
-
443
-
444
-
445
-
446
- <div class="description">
447
- Returns a copy of this color plus the color passed in
448
- </div>
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
459
- <strong>Parameters:</strong>
460
-
461
-
462
- <table class="params">
463
- <thead>
464
- <tr>
465
-
466
- <th>Name</th>
467
-
468
-
469
- <th>Type</th>
470
-
471
-
472
-
473
-
474
-
475
- <th class="last">Description</th>
476
- </tr>
477
- </thead>
478
-
479
- <tbody>
480
-
481
-
482
- <tr>
483
-
484
- <td class="name"><code>color</code></td>
485
-
486
-
487
- <td class="type">
488
-
489
-
490
- <span class="param-type"><a href="Color.html">Color</a></span>
491
-
492
-
493
-
494
- </td>
495
-
496
-
497
-
498
-
499
-
500
- <td class="description last"></td>
501
- </tr>
502
-
503
-
504
- </tbody>
505
- </table>
506
-
507
- </div>
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
- <dl class="details">
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
- <div class="details-item-container">
543
- <dt class="tag-source">Source:</dt>
544
- <dd class="tag-source"><ul class="dummy"><li>
545
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line324">line 324</a>
546
- </li></ul></dd>
547
- </div>
548
-
549
-
550
-
551
-
552
-
553
-
554
-
555
- </dl>
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
- <div class="method-member-container mt-20">
572
- <strong>Returns:</strong>
573
-
574
-
575
-
576
-
577
- <dl class="param-type">
578
- <dt>
579
- Type
580
- </dt>
581
- <dd>
582
-
583
- <span class="param-type"><a href="Color.html">Color</a></span>
584
-
585
-
586
- </dd>
587
- </dl>
588
-
589
-
590
- </div>
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
- <h4 class="name" id="clamp">
601
- <a href="#clamp">#</a>
602
- <span class="type-signature"></span>clamp<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
603
- </h4>
604
-
605
-
606
-
607
-
608
-
609
- <div class="description">
610
- Returns a copy of this color clamped to the valid range between 0 and 1
611
- </div>
612
-
613
-
614
-
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
- <dl class="details">
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
- <div class="details-item-container">
655
- <dt class="tag-source">Source:</dt>
656
- <dd class="tag-source"><ul class="dummy"><li>
657
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line349">line 349</a>
658
- </li></ul></dd>
659
- </div>
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
- </dl>
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
- <div class="method-member-container mt-20">
684
- <strong>Returns:</strong>
685
-
686
-
687
-
688
-
689
- <dl class="param-type">
690
- <dt>
691
- Type
692
- </dt>
693
- <dd>
694
-
695
- <span class="param-type"><a href="Color.html">Color</a></span>
696
-
697
-
698
- </dd>
699
- </dl>
700
-
701
-
702
- </div>
703
-
704
-
705
-
706
-
707
-
708
-
709
-
710
-
711
-
712
- <h4 class="name" id="copy">
713
- <a href="#copy">#</a>
714
- <span class="type-signature"></span>copy<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
715
- </h4>
716
-
717
-
718
-
719
-
720
-
721
- <div class="description">
722
- Returns a new color that is a copy of this
723
- </div>
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
- <dl class="details">
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
- <div class="details-item-container">
767
- <dt class="tag-source">Source:</dt>
768
- <dd class="tag-source"><ul class="dummy"><li>
769
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line319">line 319</a>
770
- </li></ul></dd>
771
- </div>
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
- </dl>
780
-
781
-
782
-
783
-
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
- <div class="method-member-container mt-20">
796
- <strong>Returns:</strong>
797
-
798
-
799
-
800
-
801
- <dl class="param-type">
802
- <dt>
803
- Type
804
- </dt>
805
- <dd>
806
-
807
- <span class="param-type"><a href="Color.html">Color</a></span>
808
-
809
-
810
- </dd>
811
- </dl>
812
-
813
-
814
- </div>
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
823
-
824
- <h4 class="name" id="divide">
825
- <a href="#divide">#</a>
826
- <span class="type-signature"></span>divide<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
827
- </h4>
828
-
829
-
830
-
831
-
832
-
833
- <div class="description">
834
- Returns a copy of this color divided by the color passed in
835
- </div>
836
-
837
-
838
-
839
-
840
-
841
-
842
-
843
-
844
-
845
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
846
- <strong>Parameters:</strong>
847
-
848
-
849
- <table class="params">
850
- <thead>
851
- <tr>
852
-
853
- <th>Name</th>
854
-
855
-
856
- <th>Type</th>
857
-
858
-
859
-
860
-
861
-
862
- <th class="last">Description</th>
863
- </tr>
864
- </thead>
865
-
866
- <tbody>
867
-
868
-
869
- <tr>
870
-
871
- <td class="name"><code>color</code></td>
872
-
873
-
874
- <td class="type">
875
-
876
-
877
- <span class="param-type"><a href="Color.html">Color</a></span>
878
-
879
-
880
-
881
- </td>
882
-
883
-
884
-
885
-
886
-
887
- <td class="description last"></td>
888
- </tr>
889
-
890
-
891
- </tbody>
892
- </table>
893
-
894
- </div>
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
- <dl class="details">
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
-
916
-
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
-
929
- <div class="details-item-container">
930
- <dt class="tag-source">Source:</dt>
931
- <dd class="tag-source"><ul class="dummy"><li>
932
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line339">line 339</a>
933
- </li></ul></dd>
934
- </div>
935
-
936
-
937
-
938
-
939
-
940
-
941
-
942
- </dl>
943
-
944
-
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
- <div class="method-member-container mt-20">
959
- <strong>Returns:</strong>
960
-
961
-
962
-
963
-
964
- <dl class="param-type">
965
- <dt>
966
- Type
967
- </dt>
968
- <dd>
969
-
970
- <span class="param-type"><a href="Color.html">Color</a></span>
971
-
972
-
973
- </dd>
974
- </dl>
975
-
976
-
977
- </div>
978
-
979
-
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
- <h4 class="name" id="lerp">
988
- <a href="#lerp">#</a>
989
- <span class="type-signature"></span>lerp<span class="signature">(color, percent)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
990
- </h4>
991
-
992
-
993
-
994
-
995
-
996
- <div class="description">
997
- Returns a new color that is p percent between this and the color passed in
998
- </div>
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1009
- <strong>Parameters:</strong>
1010
-
1011
-
1012
- <table class="params">
1013
- <thead>
1014
- <tr>
1015
-
1016
- <th>Name</th>
1017
-
1018
-
1019
- <th>Type</th>
1020
-
1021
-
1022
-
1023
-
1024
-
1025
- <th class="last">Description</th>
1026
- </tr>
1027
- </thead>
1028
-
1029
- <tbody>
1030
-
1031
-
1032
- <tr>
1033
-
1034
- <td class="name"><code>color</code></td>
1035
-
1036
-
1037
- <td class="type">
1038
-
1039
-
1040
- <span class="param-type"><a href="Color.html">Color</a></span>
1041
-
1042
-
1043
-
1044
- </td>
1045
-
1046
-
1047
-
1048
-
1049
-
1050
- <td class="description last"></td>
1051
- </tr>
1052
-
1053
-
1054
-
1055
- <tr>
1056
-
1057
- <td class="name"><code>percent</code></td>
1058
-
1059
-
1060
- <td class="type">
1061
-
1062
-
1063
- <span class="param-type">Number</span>
1064
-
1065
-
1066
-
1067
- </td>
1068
-
1069
-
1070
-
1071
-
1072
-
1073
- <td class="description last"></td>
1074
- </tr>
1075
-
1076
-
1077
- </tbody>
1078
- </table>
1079
-
1080
- </div>
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
- <dl class="details">
1089
-
1090
-
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
- <div class="details-item-container">
1116
- <dt class="tag-source">Source:</dt>
1117
- <dd class="tag-source"><ul class="dummy"><li>
1118
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line355">line 355</a>
1119
- </li></ul></dd>
1120
- </div>
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
- </dl>
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
- <div class="method-member-container mt-20">
1145
- <strong>Returns:</strong>
1146
-
1147
-
1148
-
1149
-
1150
- <dl class="param-type">
1151
- <dt>
1152
- Type
1153
- </dt>
1154
- <dd>
1155
-
1156
- <span class="param-type"><a href="Color.html">Color</a></span>
1157
-
1158
-
1159
- </dd>
1160
- </dl>
1161
-
1162
-
1163
- </div>
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
-
1172
-
1173
- <h4 class="name" id="multiply">
1174
- <a href="#multiply">#</a>
1175
- <span class="type-signature"></span>multiply<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
1176
- </h4>
1177
-
1178
-
1179
-
1180
-
1181
-
1182
- <div class="description">
1183
- Returns a copy of this color times the color passed in
1184
- </div>
1185
-
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1195
- <strong>Parameters:</strong>
1196
-
1197
-
1198
- <table class="params">
1199
- <thead>
1200
- <tr>
1201
-
1202
- <th>Name</th>
1203
-
1204
-
1205
- <th>Type</th>
1206
-
1207
-
1208
-
1209
-
1210
-
1211
- <th class="last">Description</th>
1212
- </tr>
1213
- </thead>
1214
-
1215
- <tbody>
1216
-
1217
-
1218
- <tr>
1219
-
1220
- <td class="name"><code>color</code></td>
1221
-
1222
-
1223
- <td class="type">
1224
-
1225
-
1226
- <span class="param-type"><a href="Color.html">Color</a></span>
1227
-
1228
-
1229
-
1230
- </td>
1231
-
1232
-
1233
-
1234
-
1235
-
1236
- <td class="description last"></td>
1237
- </tr>
1238
-
1239
-
1240
- </tbody>
1241
- </table>
1242
-
1243
- </div>
1244
-
1245
-
1246
-
1247
-
1248
-
1249
-
1250
-
1251
- <dl class="details">
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
-
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
-
1274
-
1275
-
1276
-
1277
-
1278
- <div class="details-item-container">
1279
- <dt class="tag-source">Source:</dt>
1280
- <dd class="tag-source"><ul class="dummy"><li>
1281
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line334">line 334</a>
1282
- </li></ul></dd>
1283
- </div>
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
- </dl>
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
- <div class="method-member-container mt-20">
1308
- <strong>Returns:</strong>
1309
-
1310
-
1311
-
1312
-
1313
- <dl class="param-type">
1314
- <dt>
1315
- Type
1316
- </dt>
1317
- <dd>
1318
-
1319
- <span class="param-type"><a href="Color.html">Color</a></span>
1320
-
1321
-
1322
- </dd>
1323
- </dl>
1324
-
1325
-
1326
- </div>
1327
-
1328
-
1329
-
1330
-
1331
-
1332
-
1333
-
1334
-
1335
-
1336
- <h4 class="name" id="mutate">
1337
- <a href="#mutate">#</a>
1338
- <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>
1339
- </h4>
1340
-
1341
-
1342
-
1343
-
1344
-
1345
- <div class="description">
1346
- Returns a new color that has each component randomly adjusted
1347
- </div>
1348
-
1349
-
1350
-
1351
-
1352
-
1353
-
1354
-
1355
-
1356
-
1357
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1358
- <strong>Parameters:</strong>
1359
-
1360
-
1361
- <table class="params">
1362
- <thead>
1363
- <tr>
1364
-
1365
- <th>Name</th>
1366
-
1367
-
1368
- <th>Type</th>
1369
-
1370
-
1371
- <th>Attributes</th>
1372
-
1373
-
1374
-
1375
- <th>Default</th>
1376
-
1377
-
1378
- <th class="last">Description</th>
1379
- </tr>
1380
- </thead>
1381
-
1382
- <tbody>
1383
-
1384
-
1385
- <tr>
1386
-
1387
- <td class="name"><code>amount</code></td>
1388
-
1389
-
1390
- <td class="type">
1391
-
1392
-
1393
- <span class="param-type">Number</span>
1394
-
1395
-
1396
-
1397
- </td>
1398
-
1399
-
1400
- <td class="attributes">
1401
-
1402
- &lt;optional><br>
1403
-
1404
-
1405
-
1406
-
1407
-
1408
- </td>
1409
-
1410
-
1411
-
1412
- <td class="default">
1413
-
1414
- .05
1415
-
1416
- </td>
1417
-
1418
-
1419
- <td class="description last"></td>
1420
- </tr>
1421
-
1422
-
1423
-
1424
- <tr>
1425
-
1426
- <td class="name"><code>alphaAmount</code></td>
1427
-
1428
-
1429
- <td class="type">
1430
-
1431
-
1432
- <span class="param-type">Number</span>
1433
-
1434
-
1435
-
1436
- </td>
1437
-
1438
-
1439
- <td class="attributes">
1440
-
1441
- &lt;optional><br>
1442
-
1443
-
1444
-
1445
-
1446
-
1447
- </td>
1448
-
1449
-
1450
-
1451
- <td class="default">
1452
-
1453
- 0
1454
-
1455
- </td>
1456
-
1457
-
1458
- <td class="description last"></td>
1459
- </tr>
1460
-
1461
-
1462
- </tbody>
1463
- </table>
1464
-
1465
- </div>
1466
-
1467
-
1468
-
1469
-
1470
-
1471
-
1472
-
1473
- <dl class="details">
1474
-
1475
-
1476
-
1477
-
1478
-
1479
-
1480
-
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
-
1499
-
1500
- <div class="details-item-container">
1501
- <dt class="tag-source">Source:</dt>
1502
- <dd class="tag-source"><ul class="dummy"><li>
1503
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line382">line 382</a>
1504
- </li></ul></dd>
1505
- </div>
1506
-
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
- </dl>
1514
-
1515
-
1516
-
1517
-
1518
-
1519
-
1520
-
1521
-
1522
-
1523
-
1524
-
1525
-
1526
-
1527
-
1528
-
1529
- <div class="method-member-container mt-20">
1530
- <strong>Returns:</strong>
1531
-
1532
-
1533
-
1534
-
1535
- <dl class="param-type">
1536
- <dt>
1537
- Type
1538
- </dt>
1539
- <dd>
1540
-
1541
- <span class="param-type"><a href="Color.html">Color</a></span>
1542
-
1543
-
1544
- </dd>
1545
- </dl>
1546
-
1547
-
1548
- </div>
1549
-
1550
-
1551
-
1552
-
1553
-
1554
-
1555
-
1556
-
1557
-
1558
- <h4 class="name" id="rgba">
1559
- <a href="#rgba">#</a>
1560
- <span class="type-signature"></span>rgba<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span>
1561
- </h4>
1562
-
1563
-
1564
-
1565
-
1566
-
1567
- <div class="description">
1568
- Returns this color expressed as an rgba string
1569
- </div>
1570
-
1571
-
1572
-
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
- <dl class="details">
1586
-
1587
-
1588
-
1589
-
1590
-
1591
-
1592
-
1593
-
1594
-
1595
-
1596
-
1597
-
1598
-
1599
-
1600
-
1601
-
1602
-
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
-
1610
-
1611
-
1612
- <div class="details-item-container">
1613
- <dt class="tag-source">Source:</dt>
1614
- <dd class="tag-source"><ul class="dummy"><li>
1615
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line395">line 395</a>
1616
- </li></ul></dd>
1617
- </div>
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
- </dl>
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
- <div class="method-member-container mt-20">
1642
- <strong>Returns:</strong>
1643
-
1644
-
1645
-
1646
-
1647
- <dl class="param-type">
1648
- <dt>
1649
- Type
1650
- </dt>
1651
- <dd>
1652
-
1653
- <span class="param-type">String</span>
1654
-
1655
-
1656
- </dd>
1657
- </dl>
1658
-
1659
-
1660
- </div>
1661
-
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
-
1670
- <h4 class="name" id="rgbaInt">
1671
- <a href="#rgbaInt">#</a>
1672
- <span class="type-signature"></span>rgbaInt<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
1673
- </h4>
1674
-
1675
-
1676
-
1677
-
1678
-
1679
- <div class="description">
1680
- Returns this color expressed as 32 bit integer value
1681
- </div>
1682
-
1683
-
1684
-
1685
-
1686
-
1687
-
1688
-
1689
-
1690
-
1691
-
1692
-
1693
-
1694
-
1695
-
1696
-
1697
- <dl class="details">
1698
-
1699
-
1700
-
1701
-
1702
-
1703
-
1704
-
1705
-
1706
-
1707
-
1708
-
1709
-
1710
-
1711
-
1712
-
1713
-
1714
-
1715
-
1716
-
1717
-
1718
-
1719
-
1720
-
1721
-
1722
-
1723
-
1724
- <div class="details-item-container">
1725
- <dt class="tag-source">Source:</dt>
1726
- <dd class="tag-source"><ul class="dummy"><li>
1727
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line403">line 403</a>
1728
- </li></ul></dd>
1729
- </div>
1730
-
1731
-
1732
-
1733
-
1734
-
1735
-
1736
-
1737
- </dl>
1738
-
1739
-
1740
-
1741
-
1742
-
1743
-
1744
-
1745
-
1746
-
1747
-
1748
-
1749
-
1750
-
1751
-
1752
-
1753
- <div class="method-member-container mt-20">
1754
- <strong>Returns:</strong>
1755
-
1756
-
1757
-
1758
-
1759
- <dl class="param-type">
1760
- <dt>
1761
- Type
1762
- </dt>
1763
- <dd>
1764
-
1765
- <span class="param-type">Number</span>
1766
-
1767
-
1768
- </dd>
1769
- </dl>
1770
-
1771
-
1772
- </div>
1773
-
1774
-
1775
-
1776
-
1777
-
1778
-
1779
-
1780
-
1781
-
1782
- <h4 class="name" id="scale">
1783
- <a href="#scale">#</a>
1784
- <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>
1785
- </h4>
1786
-
1787
-
1788
-
1789
-
1790
-
1791
- <div class="description">
1792
- Returns a copy of this color scaled by the value passed in, alpha can be scaled separately
1793
- </div>
1794
-
1795
-
1796
-
1797
-
1798
-
1799
-
1800
-
1801
-
1802
-
1803
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1804
- <strong>Parameters:</strong>
1805
-
1806
-
1807
- <table class="params">
1808
- <thead>
1809
- <tr>
1810
-
1811
- <th>Name</th>
1812
-
1813
-
1814
- <th>Type</th>
1815
-
1816
-
1817
- <th>Attributes</th>
1818
-
1819
-
1820
-
1821
- <th>Default</th>
1822
-
1823
-
1824
- <th class="last">Description</th>
1825
- </tr>
1826
- </thead>
1827
-
1828
- <tbody>
1829
-
1830
-
1831
- <tr>
1832
-
1833
- <td class="name"><code>scale</code></td>
1834
-
1835
-
1836
- <td class="type">
1837
-
1838
-
1839
- <span class="param-type">Number</span>
1840
-
1841
-
1842
-
1843
- </td>
1844
-
1845
-
1846
- <td class="attributes">
1847
-
1848
-
1849
-
1850
-
1851
-
1852
- </td>
1853
-
1854
-
1855
-
1856
- <td class="default">
1857
-
1858
- </td>
1859
-
1860
-
1861
- <td class="description last"></td>
1862
- </tr>
1863
-
1864
-
1865
-
1866
- <tr>
1867
-
1868
- <td class="name"><code>alphaScale</code></td>
1869
-
1870
-
1871
- <td class="type">
1872
-
1873
-
1874
- <span class="param-type">Number</span>
1875
-
1876
-
1877
-
1878
- </td>
1879
-
1880
-
1881
- <td class="attributes">
1882
-
1883
- &lt;optional><br>
1884
-
1885
-
1886
-
1887
-
1888
-
1889
- </td>
1890
-
1891
-
1892
-
1893
- <td class="default">
1894
-
1895
- scale
1896
-
1897
- </td>
1898
-
1899
-
1900
- <td class="description last"></td>
1901
- </tr>
1902
-
1903
-
1904
- </tbody>
1905
- </table>
1906
-
1907
- </div>
1908
-
1909
-
1910
-
1911
-
1912
-
1913
-
1914
-
1915
- <dl class="details">
1916
-
1917
-
1918
-
1919
-
1920
-
1921
-
1922
-
1923
-
1924
-
1925
-
1926
-
1927
-
1928
-
1929
-
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
-
1937
-
1938
-
1939
-
1940
-
1941
-
1942
- <div class="details-item-container">
1943
- <dt class="tag-source">Source:</dt>
1944
- <dd class="tag-source"><ul class="dummy"><li>
1945
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line345">line 345</a>
1946
- </li></ul></dd>
1947
- </div>
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
- </dl>
1956
-
1957
-
1958
-
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
-
1969
-
1970
-
1971
- <div class="method-member-container mt-20">
1972
- <strong>Returns:</strong>
1973
-
1974
-
1975
-
1976
-
1977
- <dl class="param-type">
1978
- <dt>
1979
- Type
1980
- </dt>
1981
- <dd>
1982
-
1983
- <span class="param-type"><a href="Color.html">Color</a></span>
1984
-
1985
-
1986
- </dd>
1987
- </dl>
1988
-
1989
-
1990
- </div>
1991
-
1992
-
1993
-
1994
-
1995
-
1996
-
1997
-
1998
-
1999
-
2000
- <h4 class="name" id="setHSLA">
2001
- <a href="#setHSLA">#</a>
2002
- <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>
2003
- </h4>
2004
-
2005
-
2006
-
2007
-
2008
-
2009
- <div class="description">
2010
- Sets this color given a hue, saturation, lightness , and alpha
2011
- </div>
2012
-
2013
-
2014
-
2015
-
2016
-
2017
-
2018
-
2019
-
2020
-
2021
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2022
- <strong>Parameters:</strong>
2023
-
2024
-
2025
- <table class="params">
2026
- <thead>
2027
- <tr>
2028
-
2029
- <th>Name</th>
2030
-
2031
-
2032
- <th>Type</th>
2033
-
2034
-
2035
- <th>Attributes</th>
2036
-
2037
-
2038
-
2039
- <th>Default</th>
2040
-
2041
-
2042
- <th class="last">Description</th>
2043
- </tr>
2044
- </thead>
2045
-
2046
- <tbody>
2047
-
2048
-
2049
- <tr>
2050
-
2051
- <td class="name"><code>hue</code></td>
2052
-
2053
-
2054
- <td class="type">
2055
-
2056
-
2057
- <span class="param-type">Number</span>
2058
-
2059
-
2060
-
2061
- </td>
2062
-
2063
-
2064
- <td class="attributes">
2065
-
2066
- &lt;optional><br>
2067
-
2068
-
2069
-
2070
-
2071
-
2072
- </td>
2073
-
2074
-
2075
-
2076
- <td class="default">
2077
-
2078
- 0
2079
-
2080
- </td>
2081
-
2082
-
2083
- <td class="description last"></td>
2084
- </tr>
2085
-
2086
-
2087
-
2088
- <tr>
2089
-
2090
- <td class="name"><code>saturation</code></td>
2091
-
2092
-
2093
- <td class="type">
2094
-
2095
-
2096
- <span class="param-type">Number</span>
2097
-
2098
-
2099
-
2100
- </td>
2101
-
2102
-
2103
- <td class="attributes">
2104
-
2105
- &lt;optional><br>
2106
-
2107
-
2108
-
2109
-
2110
-
2111
- </td>
2112
-
2113
-
2114
-
2115
- <td class="default">
2116
-
2117
- 0
2118
-
2119
- </td>
2120
-
2121
-
2122
- <td class="description last"></td>
2123
- </tr>
2124
-
2125
-
2126
-
2127
- <tr>
2128
-
2129
- <td class="name"><code>lightness</code></td>
2130
-
2131
-
2132
- <td class="type">
2133
-
2134
-
2135
- <span class="param-type">Number</span>
2136
-
2137
-
2138
-
2139
- </td>
2140
-
2141
-
2142
- <td class="attributes">
2143
-
2144
- &lt;optional><br>
2145
-
2146
-
2147
-
2148
-
2149
-
2150
- </td>
2151
-
2152
-
2153
-
2154
- <td class="default">
2155
-
2156
- 1
2157
-
2158
- </td>
2159
-
2160
-
2161
- <td class="description last"></td>
2162
- </tr>
2163
-
2164
-
2165
-
2166
- <tr>
2167
-
2168
- <td class="name"><code>alpha</code></td>
2169
-
2170
-
2171
- <td class="type">
2172
-
2173
-
2174
- <span class="param-type">Number</span>
2175
-
2176
-
2177
-
2178
- </td>
2179
-
2180
-
2181
- <td class="attributes">
2182
-
2183
- &lt;optional><br>
2184
-
2185
-
2186
-
2187
-
2188
-
2189
- </td>
2190
-
2191
-
2192
-
2193
- <td class="default">
2194
-
2195
- 1
2196
-
2197
- </td>
2198
-
2199
-
2200
- <td class="description last"></td>
2201
- </tr>
2202
-
2203
-
2204
- </tbody>
2205
- </table>
2206
-
2207
- </div>
2208
-
2209
-
2210
-
2211
-
2212
-
2213
-
2214
-
2215
- <dl class="details">
2216
-
2217
-
2218
-
2219
-
2220
-
2221
-
2222
-
2223
-
2224
-
2225
-
2226
-
2227
-
2228
-
2229
-
2230
-
2231
-
2232
-
2233
-
2234
-
2235
-
2236
-
2237
-
2238
-
2239
-
2240
-
2241
-
2242
- <div class="details-item-container">
2243
- <dt class="tag-source">Source:</dt>
2244
- <dd class="tag-source"><ul class="dummy"><li>
2245
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line363">line 363</a>
2246
- </li></ul></dd>
2247
- </div>
2248
-
2249
-
2250
-
2251
-
2252
-
2253
-
2254
-
2255
- </dl>
2256
-
2257
-
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
-
2266
-
2267
-
2268
-
2269
-
2270
-
2271
- <div class="method-member-container mt-20">
2272
- <strong>Returns:</strong>
2273
-
2274
-
2275
-
2276
-
2277
- <dl class="param-type">
2278
- <dt>
2279
- Type
2280
- </dt>
2281
- <dd>
2282
-
2283
- <span class="param-type"><a href="Color.html">Color</a></span>
2284
-
2285
-
2286
- </dd>
2287
- </dl>
2288
-
2289
-
2290
- </div>
2291
-
2292
-
2293
-
2294
-
2295
-
2296
-
2297
-
2298
-
2299
-
2300
- <h4 class="name" id="subtract">
2301
- <a href="#subtract">#</a>
2302
- <span class="type-signature"></span>subtract<span class="signature">(color)</span><span class="type-signature"> &rarr; {<a href="Color.html">Color</a>}</span>
2303
- </h4>
2304
-
2305
-
2306
-
2307
-
2308
-
2309
- <div class="description">
2310
- Returns a copy of this color minus the color passed in
2311
- </div>
2312
-
2313
-
2314
-
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2322
- <strong>Parameters:</strong>
2323
-
2324
-
2325
- <table class="params">
2326
- <thead>
2327
- <tr>
2328
-
2329
- <th>Name</th>
2330
-
2331
-
2332
- <th>Type</th>
2333
-
2334
-
2335
-
2336
-
2337
-
2338
- <th class="last">Description</th>
2339
- </tr>
2340
- </thead>
2341
-
2342
- <tbody>
2343
-
2344
-
2345
- <tr>
2346
-
2347
- <td class="name"><code>color</code></td>
2348
-
2349
-
2350
- <td class="type">
2351
-
2352
-
2353
- <span class="param-type"><a href="Color.html">Color</a></span>
2354
-
2355
-
2356
-
2357
- </td>
2358
-
2359
-
2360
-
2361
-
2362
-
2363
- <td class="description last"></td>
2364
- </tr>
2365
-
2366
-
2367
- </tbody>
2368
- </table>
2369
-
2370
- </div>
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
-
2378
- <dl class="details">
2379
-
2380
-
2381
-
2382
-
2383
-
2384
-
2385
-
2386
-
2387
-
2388
-
2389
-
2390
-
2391
-
2392
-
2393
-
2394
-
2395
-
2396
-
2397
-
2398
-
2399
-
2400
-
2401
-
2402
-
2403
-
2404
-
2405
- <div class="details-item-container">
2406
- <dt class="tag-source">Source:</dt>
2407
- <dd class="tag-source"><ul class="dummy"><li>
2408
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line329">line 329</a>
2409
- </li></ul></dd>
2410
- </div>
2411
-
2412
-
2413
-
2414
-
2415
-
2416
-
2417
-
2418
- </dl>
2419
-
2420
-
2421
-
2422
-
2423
-
2424
-
2425
-
2426
-
2427
-
2428
-
2429
-
2430
-
2431
-
2432
-
2433
-
2434
- <div class="method-member-container mt-20">
2435
- <strong>Returns:</strong>
2436
-
2437
-
2438
-
2439
-
2440
- <dl class="param-type">
2441
- <dt>
2442
- Type
2443
- </dt>
2444
- <dd>
2445
-
2446
- <span class="param-type"><a href="Color.html">Color</a></span>
2447
-
2448
-
2449
- </dd>
2450
- </dl>
2451
-
2452
-
2453
- </div>
2454
-
2455
-
2456
-
2457
-
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
- </article>
2465
-
2466
- </section>
2467
-
2468
-
2469
-
2470
-
2471
- </div>
2472
-
2473
- <footer class="footer" id="footer">
2474
- <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
2475
- </footer>
2476
-
2477
- <script src="scripts/third-party/prettify.js"></script>
2478
- <script src="scripts/third-party/lang-css.js"></script>
2479
- <script type="text/javascript" src="scripts/misc.js"></script>
2480
-
2481
- <script>prettyPrint();</script>
2482
- <script src="scripts/linenumber.js"></script>
2483
- <script src="scripts/fix-code-block.js"></script>
2484
- <script src="scripts/fix-navbar.js"></script>
2485
-
2486
- <script src="scripts/search.js"></script>
2487
- <script src="scripts/third-party/fuse.js"></script>
2488
- <script>
2489
- var list = [{"title":"Color","link":"<a href=\"Color.html\">Color</a>"},{"title":"Color#add","link":"<a href=\"Color.html#add\">Color &rtrif; add</a>"},{"title":"Color#clamp","link":"<a href=\"Color.html#clamp\">Color &rtrif; clamp</a>"},{"title":"Color#copy","link":"<a href=\"Color.html#copy\">Color &rtrif; copy</a>"},{"title":"Color#divide","link":"<a href=\"Color.html#divide\">Color &rtrif; divide</a>"},{"title":"Color#lerp","link":"<a href=\"Color.html#lerp\">Color &rtrif; lerp</a>"},{"title":"Color#multiply","link":"<a href=\"Color.html#multiply\">Color &rtrif; multiply</a>"},{"title":"Color#mutate","link":"<a href=\"Color.html#mutate\">Color &rtrif; mutate</a>"},{"title":"Color#rgba","link":"<a href=\"Color.html#rgba\">Color &rtrif; rgba</a>"},{"title":"Color#rgbaInt","link":"<a href=\"Color.html#rgbaInt\">Color &rtrif; rgbaInt</a>"},{"title":"Color#scale","link":"<a href=\"Color.html#scale\">Color &rtrif; scale</a>"},{"title":"Color#setHSLA","link":"<a href=\"Color.html#setHSLA\">Color &rtrif; setHSLA</a>"},{"title":"Color#subtract","link":"<a href=\"Color.html#subtract\">Color &rtrif; subtract</a>"},{"title":"EngineObject","link":"<a href=\"EngineObject.html\">EngineObject</a>"},{"title":"EngineObject#addChild","link":"<a href=\"EngineObject.html#addChild\">EngineObject &rtrif; addChild</a>"},{"title":"EngineObject#applyAcceleration","link":"<a href=\"EngineObject.html#applyAcceleration\">EngineObject &rtrif; applyAcceleration</a>"},{"title":"EngineObject#applyForce","link":"<a href=\"EngineObject.html#applyForce\">EngineObject &rtrif; applyForce</a>"},{"title":"EngineObject#collideWithObject","link":"<a href=\"EngineObject.html#collideWithObject\">EngineObject &rtrif; collideWithObject</a>"},{"title":"EngineObject#collideWithTile","link":"<a href=\"EngineObject.html#collideWithTile\">EngineObject &rtrif; collideWithTile</a>"},{"title":"EngineObject#collideWithTileRaycast","link":"<a href=\"EngineObject.html#collideWithTileRaycast\">EngineObject &rtrif; collideWithTileRaycast</a>"},{"title":"EngineObject#destroy","link":"<a href=\"EngineObject.html#destroy\">EngineObject &rtrif; destroy</a>"},{"title":"EngineObject#getAliveTime","link":"<a href=\"EngineObject.html#getAliveTime\">EngineObject &rtrif; getAliveTime</a>"},{"title":"EngineObject#getMirrorSign","link":"<a href=\"EngineObject.html#getMirrorSign\">EngineObject &rtrif; getMirrorSign</a>"},{"title":"EngineObject#removeChild","link":"<a href=\"EngineObject.html#removeChild\">EngineObject &rtrif; removeChild</a>"},{"title":"EngineObject#render","link":"<a href=\"EngineObject.html#render\">EngineObject &rtrif; render</a>"},{"title":"EngineObject#setCollision","link":"<a href=\"EngineObject.html#setCollision\">EngineObject &rtrif; setCollision</a>"},{"title":"EngineObject#update","link":"<a href=\"EngineObject.html#update\">EngineObject &rtrif; update</a>"},{"title":"Medal","link":"<a href=\"Medal.html\">Medal</a>"},{"title":"Medal#render","link":"<a href=\"Medal.html#render\">Medal &rtrif; render</a>"},{"title":"Medal#renderIcon","link":"<a href=\"Medal.html#renderIcon\">Medal &rtrif; renderIcon</a>"},{"title":"Medal#unlock","link":"<a href=\"Medal.html#unlock\">Medal &rtrif; unlock</a>"},{"title":"Music","link":"<a href=\"Music.html\">Music</a>"},{"title":"Music#play","link":"<a href=\"Music.html#play\">Music &rtrif; play</a>"},{"title":"Newgrounds","link":"<a href=\"Newgrounds.html\">Newgrounds</a>"},{"title":"Newgrounds#call","link":"<a href=\"Newgrounds.html#call\">Newgrounds &rtrif; call</a>"},{"title":"Newgrounds#getScores","link":"<a href=\"Newgrounds.html#getScores\">Newgrounds &rtrif; getScores</a>"},{"title":"Newgrounds#logView","link":"<a href=\"Newgrounds.html#logView\">Newgrounds &rtrif; logView</a>"},{"title":"Newgrounds#postScore","link":"<a href=\"Newgrounds.html#postScore\">Newgrounds &rtrif; postScore</a>"},{"title":"Newgrounds#unlockMedal","link":"<a href=\"Newgrounds.html#unlockMedal\">Newgrounds &rtrif; unlockMedal</a>"},{"title":"Particle","link":"<a href=\"Particle.html\">Particle</a>"},{"title":"Particle#render","link":"<a href=\"Particle.html#render\">Particle &rtrif; render</a>"},{"title":"ParticleEmitter","link":"<a href=\"ParticleEmitter.html\">ParticleEmitter</a>"},{"title":"ParticleEmitter#emitParticle","link":"<a href=\"ParticleEmitter.html#emitParticle\">ParticleEmitter &rtrif; emitParticle</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.getTileCollisionData","link":"<a href=\"TileLayer.html#.getTileCollisionData\">TileLayer.getTileCollisionData &rtrif; undefined</a>"},{"title":"TileLayer.initTileCollision","link":"<a href=\"TileLayer.html#.initTileCollision\">TileLayer.initTileCollision &rtrif; undefined</a>"},{"title":"TileLayer.setTileCollisionData","link":"<a href=\"TileLayer.html#.setTileCollisionData\">TileLayer.setTileCollisionData &rtrif; undefined</a>"},{"title":"TileLayer.tileCollisionRaycast","link":"<a href=\"TileLayer.html#.tileCollisionRaycast\">TileLayer.tileCollisionRaycast &rtrif; undefined</a>"},{"title":"TileLayer.tileCollisionTest","link":"<a href=\"TileLayer.html#.tileCollisionTest\">TileLayer.tileCollisionTest &rtrif; undefined</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#getData","link":"<a href=\"TileLayer.html#getData\">TileLayer &rtrif; getData</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#setData","link":"<a href=\"TileLayer.html#setData\">TileLayer &rtrif; setData</a>"},{"title":"TileLayerData","link":"<a href=\"TileLayerData.html\">TileLayerData</a>"},{"title":"TileLayerData#clear","link":"<a href=\"TileLayerData.html#clear\">TileLayerData &rtrif; clear</a>"},{"title":"Timer","link":"<a href=\"Timer.html\">Timer</a>"},{"title":"Timer#active","link":"<a href=\"Timer.html#active\">Timer &rtrif; active</a>"},{"title":"Timer#elapsed","link":"<a href=\"Timer.html#elapsed\">Timer &rtrif; elapsed</a>"},{"title":"Timer#get","link":"<a href=\"Timer.html#get\">Timer &rtrif; get</a>"},{"title":"Timer#getPercent","link":"<a href=\"Timer.html#getPercent\">Timer &rtrif; getPercent</a>"},{"title":"Timer#isSet","link":"<a href=\"Timer.html#isSet\">Timer &rtrif; isSet</a>"},{"title":"Timer#set","link":"<a href=\"Timer.html#set\">Timer &rtrif; set</a>"},{"title":"Timer#unset","link":"<a href=\"Timer.html#unset\">Timer &rtrif; unset</a>"},{"title":"Vector2","link":"<a href=\"Vector2.html\">Vector2</a>"},{"title":"Vector2#add","link":"<a href=\"Vector2.html#add\">Vector2 &rtrif; add</a>"},{"title":"Vector2#angle","link":"<a href=\"Vector2.html#angle\">Vector2 &rtrif; angle</a>"},{"title":"Vector2#area","link":"<a href=\"Vector2.html#area\">Vector2 &rtrif; area</a>"},{"title":"Vector2#arrayCheck","link":"<a href=\"Vector2.html#arrayCheck\">Vector2 &rtrif; arrayCheck</a>"},{"title":"Vector2#clampLength","link":"<a href=\"Vector2.html#clampLength\">Vector2 &rtrif; clampLength</a>"},{"title":"Vector2#copy","link":"<a href=\"Vector2.html#copy\">Vector2 &rtrif; copy</a>"},{"title":"Vector2#cross","link":"<a href=\"Vector2.html#cross\">Vector2 &rtrif; cross</a>"},{"title":"Vector2#direction","link":"<a href=\"Vector2.html#direction\">Vector2 &rtrif; direction</a>"},{"title":"Vector2#distance","link":"<a href=\"Vector2.html#distance\">Vector2 &rtrif; distance</a>"},{"title":"Vector2#distanceSquared","link":"<a href=\"Vector2.html#distanceSquared\">Vector2 &rtrif; distanceSquared</a>"},{"title":"Vector2#divide","link":"<a href=\"Vector2.html#divide\">Vector2 &rtrif; divide</a>"},{"title":"Vector2#dot","link":"<a href=\"Vector2.html#dot\">Vector2 &rtrif; dot</a>"},{"title":"Vector2#flip","link":"<a href=\"Vector2.html#flip\">Vector2 &rtrif; flip</a>"},{"title":"Vector2#floor","link":"<a href=\"Vector2.html#floor\">Vector2 &rtrif; floor</a>"},{"title":"Vector2#invert","link":"<a href=\"Vector2.html#invert\">Vector2 &rtrif; invert</a>"},{"title":"Vector2#length","link":"<a href=\"Vector2.html#length\">Vector2 &rtrif; length</a>"},{"title":"Vector2#lengthSquared","link":"<a href=\"Vector2.html#lengthSquared\">Vector2 &rtrif; lengthSquared</a>"},{"title":"Vector2#lerp","link":"<a href=\"Vector2.html#lerp\">Vector2 &rtrif; lerp</a>"},{"title":"Vector2#multiply","link":"<a href=\"Vector2.html#multiply\">Vector2 &rtrif; multiply</a>"},{"title":"Vector2#normalize","link":"<a href=\"Vector2.html#normalize\">Vector2 &rtrif; normalize</a>"},{"title":"Vector2#rotate","link":"<a href=\"Vector2.html#rotate\">Vector2 &rtrif; rotate</a>"},{"title":"Vector2#scale","link":"<a href=\"Vector2.html#scale\">Vector2 &rtrif; scale</a>"},{"title":"Vector2#setAngle","link":"<a href=\"Vector2.html#setAngle\">Vector2 &rtrif; setAngle</a>"},{"title":"Vector2#subtract","link":"<a href=\"Vector2.html#subtract\">Vector2 &rtrif; subtract</a>"},{"title":"Audio","link":"<a href=\"Audio.html\">Audio</a>"},{"title":"Audio.getNoteFrequency","link":"<a href=\"Audio.html#.getNoteFrequency\">Audio.getNoteFrequency &rtrif; undefined</a>"},{"title":"Audio.playAudioFile","link":"<a href=\"Audio.html#.playAudioFile\">Audio.playAudioFile &rtrif; undefined</a>"},{"title":"Audio.playSamples","link":"<a href=\"Audio.html#.playSamples\">Audio.playSamples &rtrif; undefined</a>"},{"title":"Audio.speak","link":"<a href=\"Audio.html#.speak\">Audio.speak &rtrif; undefined</a>"},{"title":"Audio.stopSpeech","link":"<a href=\"Audio.html#.stopSpeech\">Audio.stopSpeech &rtrif; undefined</a>"},{"title":"Audio.zzfx","link":"<a href=\"Audio.html#.zzfx\">Audio.zzfx &rtrif; undefined</a>"},{"title":"Audio.zzfxG","link":"<a href=\"Audio.html#.zzfxG\">Audio.zzfxG &rtrif; undefined</a>"},{"title":"Audio.zzfxM","link":"<a href=\"Audio.html#.zzfxM\">Audio.zzfxM &rtrif; undefined</a>"},{"title":"Debug","link":"<a href=\"Debug.html\">Debug</a>"},{"title":"Debug.debugAABB","link":"<a href=\"Debug.html#.debugAABB\">Debug.debugAABB &rtrif; undefined</a>"},{"title":"Debug.debugCircle","link":"<a href=\"Debug.html#.debugCircle\">Debug.debugCircle &rtrif; undefined</a>"},{"title":"Debug.debugClear","link":"<a href=\"Debug.html#.debugClear\">Debug.debugClear &rtrif; undefined</a>"},{"title":"Debug.debugLine","link":"<a href=\"Debug.html#.debugLine\">Debug.debugLine &rtrif; undefined</a>"},{"title":"Debug.debugPoint","link":"<a href=\"Debug.html#.debugPoint\">Debug.debugPoint &rtrif; undefined</a>"},{"title":"Debug.debugRect","link":"<a href=\"Debug.html#.debugRect\">Debug.debugRect &rtrif; undefined</a>"},{"title":"Debug.debugSaveCanvas","link":"<a href=\"Debug.html#.debugSaveCanvas\">Debug.debugSaveCanvas &rtrif; undefined</a>"},{"title":"Debug.debugText","link":"<a href=\"Debug.html#.debugText\">Debug.debugText &rtrif; undefined</a>"},{"title":"Draw","link":"<a href=\"Draw.html\">Draw</a>"},{"title":"Draw.drawCanvas2D","link":"<a href=\"Draw.html#.drawCanvas2D\">Draw.drawCanvas2D &rtrif; undefined</a>"},{"title":"Draw.drawLine","link":"<a href=\"Draw.html#.drawLine\">Draw.drawLine &rtrif; undefined</a>"},{"title":"Draw.drawRect","link":"<a href=\"Draw.html#.drawRect\">Draw.drawRect &rtrif; undefined</a>"},{"title":"Draw.drawRectScreenSpace","link":"<a href=\"Draw.html#.drawRectScreenSpace\">Draw.drawRectScreenSpace &rtrif; undefined</a>"},{"title":"Draw.drawText","link":"<a href=\"Draw.html#.drawText\">Draw.drawText &rtrif; undefined</a>"},{"title":"Draw.drawTile","link":"<a href=\"Draw.html#.drawTile\">Draw.drawTile &rtrif; undefined</a>"},{"title":"Draw.drawTileScreenSpace","link":"<a href=\"Draw.html#.drawTileScreenSpace\">Draw.drawTileScreenSpace &rtrif; undefined</a>"},{"title":"Draw.isFullscreen","link":"<a href=\"Draw.html#.isFullscreen\">Draw.isFullscreen &rtrif; undefined</a>"},{"title":"Draw.screenToWorld","link":"<a href=\"Draw.html#.screenToWorld\">Draw.screenToWorld &rtrif; undefined</a>"},{"title":"Draw.setBlendMode","link":"<a href=\"Draw.html#.setBlendMode\">Draw.setBlendMode &rtrif; undefined</a>"},{"title":"Draw.toggleFullscreen","link":"<a href=\"Draw.html#.toggleFullscreen\">Draw.toggleFullscreen &rtrif; undefined</a>"},{"title":"Draw.worldToScreen","link":"<a href=\"Draw.html#.worldToScreen\">Draw.worldToScreen &rtrif; undefined</a>"},{"title":"Input","link":"<a href=\"Input.html\">Input</a>"},{"title":"Input.clearInput","link":"<a href=\"Input.html#.clearInput\">Input.clearInput &rtrif; undefined</a>"},{"title":"Input.gamepadIsDown","link":"<a href=\"Input.html#.gamepadIsDown\">Input.gamepadIsDown &rtrif; undefined</a>"},{"title":"Input.gamepadStick","link":"<a href=\"Input.html#.gamepadStick\">Input.gamepadStick &rtrif; undefined</a>"},{"title":"Input.gamepadWasPressed","link":"<a href=\"Input.html#.gamepadWasPressed\">Input.gamepadWasPressed &rtrif; undefined</a>"},{"title":"Input.gamepadWasReleased","link":"<a href=\"Input.html#.gamepadWasReleased\">Input.gamepadWasReleased &rtrif; undefined</a>"},{"title":"Input.keyIsDown","link":"<a href=\"Input.html#.keyIsDown\">Input.keyIsDown &rtrif; undefined</a>"},{"title":"Input.keyWasPressed","link":"<a href=\"Input.html#.keyWasPressed\">Input.keyWasPressed &rtrif; undefined</a>"},{"title":"Input.keyWasReleased","link":"<a href=\"Input.html#.keyWasReleased\">Input.keyWasReleased &rtrif; undefined</a>"},{"title":"Medals","link":"<a href=\"Medals.html\">Medals</a>"},{"title":"Medals.medalsInit","link":"<a href=\"Medals.html#.medalsInit\">Medals.medalsInit &rtrif; undefined</a>"},{"title":"Random","link":"<a href=\"Random.html\">Random</a>"},{"title":"Random.rand","link":"<a href=\"Random.html#.rand\">Random.rand &rtrif; undefined</a>"},{"title":"Random.randColor","link":"<a href=\"Random.html#.randColor\">Random.randColor &rtrif; undefined</a>"},{"title":"Random.randInCircle","link":"<a href=\"Random.html#.randInCircle\">Random.randInCircle &rtrif; undefined</a>"},{"title":"Random.randInt","link":"<a href=\"Random.html#.randInt\">Random.randInt &rtrif; undefined</a>"},{"title":"Random.randSeeded","link":"<a href=\"Random.html#.randSeeded\">Random.randSeeded &rtrif; undefined</a>"},{"title":"Random.randSign","link":"<a href=\"Random.html#.randSign\">Random.randSign &rtrif; undefined</a>"},{"title":"Random.randVector","link":"<a href=\"Random.html#.randVector\">Random.randVector &rtrif; undefined</a>"},{"title":"Settings","link":"<a href=\"Settings.html\">Settings</a>"},{"title":"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.glFlush","link":"<a href=\"WebGL.html#.glFlush\">WebGL.glFlush &rtrif; undefined</a>"},{"title":"WebGL.glSetBlendMode","link":"<a href=\"WebGL.html#.glSetBlendMode\">WebGL.glSetBlendMode &rtrif; undefined</a>"},{"title":"WebGL.glSetTexture","link":"<a href=\"WebGL.html#.glSetTexture\">WebGL.glSetTexture &rtrif; undefined</a>"},{"title":"engineCollideObjects","link":"<a href=\"global.html#engineCollideObjects\">engineCollideObjects</a>"},{"title":"engineInit","link":"<a href=\"global.html#engineInit\">engineInit</a>"},{"title":"engineName","link":"<a href=\"global.html#engineName\">engineName</a>"},{"title":"engineObjects","link":"<a href=\"global.html#engineObjects\">engineObjects</a>"},{"title":"engineObjectsCallback","link":"<a href=\"global.html#engineObjectsCallback\">engineObjectsCallback</a>"},{"title":"engineObjectsDestroy","link":"<a href=\"global.html#engineObjectsDestroy\">engineObjectsDestroy</a>"},{"title":"engineObjectsUpdate","link":"<a href=\"global.html#engineObjectsUpdate\">engineObjectsUpdate</a>"},{"title":"engineVersion","link":"<a href=\"global.html#engineVersion\">engineVersion</a>"},{"title":"FPS","link":"<a href=\"global.html#FPS\">FPS</a>"},{"title":"frame","link":"<a href=\"global.html#frame\">frame</a>"},{"title":"paused","link":"<a href=\"global.html#paused\">paused</a>"},{"title":"time","link":"<a href=\"global.html#time\">time</a>"},{"title":"timeDelta","link":"<a href=\"global.html#timeDelta\">timeDelta</a>"},{"title":"timeReal","link":"<a href=\"global.html#timeReal\">timeReal</a>"}];
2490
- var options =
2491
- setupSearch(list, options)
2492
- </script>
2493
-
2494
-
2495
-
2496
-
2497
-
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
- </body>
2505
-
2506
- </html>