GradientColorStop.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Class: GradientColorStop</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Class: GradientColorStop</h1>
  17. <section>
  18. <header>
  19. <h2><span class="attribs"><span class="type-signature"></span></span>GradientColorStop<span class="signature">(offset, color)</span><span class="type-signature"></span></h2>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h4 class="name" id="GradientColorStop"><span class="type-signature"></span>new GradientColorStop<span class="signature">(offset, color)</span><span class="type-signature"></span></h4>
  24. <div class="description">
  25. Gradient color stop is used to create the gradients by their color sections.
  26. The gradients are ordered, each stop has a target color that becomes solid on its offset value triggering the next color stop if there is one.
  27. </div>
  28. <h5>Parameters:</h5>
  29. <table class="params">
  30. <thead>
  31. <tr>
  32. <th>Name</th>
  33. <th>Type</th>
  34. <th class="last">Description</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr>
  39. <td class="name"><code>offset</code></td>
  40. <td class="type">
  41. </td>
  42. <td class="description last">Offset of the color stop between 0 and 1 inclusive.</td>
  43. </tr>
  44. <tr>
  45. <td class="name"><code>color</code></td>
  46. <td class="type">
  47. </td>
  48. <td class="description last">CSS color value.</td>
  49. </tr>
  50. </tbody>
  51. </table>
  52. <dl class="details">
  53. <dt class="tag-source">Source:</dt>
  54. <dd class="tag-source"><ul class="dummy"><li>
  55. <a href="objects_style_GradientColorStop.js.html">objects/style/GradientColorStop.js</a>, <a href="objects_style_GradientColorStop.js.html#line11">line 11</a>
  56. </li></ul></dd>
  57. </dl>
  58. </div>
  59. <h3 class="subsection-title">Members</h3>
  60. <h4 class="name" id="color"><span class="type-signature"></span>color<span class="type-signature"> :string</span></h4>
  61. <div class="description">
  62. CSS color value.
  63. </div>
  64. <h5>Type:</h5>
  65. <ul>
  66. <li>
  67. <span class="param-type">string</span>
  68. </li>
  69. </ul>
  70. <dl class="details">
  71. <dt class="tag-source">Source:</dt>
  72. <dd class="tag-source"><ul class="dummy"><li>
  73. <a href="objects_style_GradientColorStop.js.html">objects/style/GradientColorStop.js</a>, <a href="objects_style_GradientColorStop.js.html#line25">line 25</a>
  74. </li></ul></dd>
  75. </dl>
  76. <h4 class="name" id="offset"><span class="type-signature"></span>offset<span class="type-signature"> :number</span></h4>
  77. <div class="description">
  78. Offset of the color stop between 0 and 1 inclusive.
  79. </div>
  80. <h5>Type:</h5>
  81. <ul>
  82. <li>
  83. <span class="param-type">number</span>
  84. </li>
  85. </ul>
  86. <dl class="details">
  87. <dt class="tag-source">Source:</dt>
  88. <dd class="tag-source"><ul class="dummy"><li>
  89. <a href="objects_style_GradientColorStop.js.html">objects/style/GradientColorStop.js</a>, <a href="objects_style_GradientColorStop.js.html#line18">line 18</a>
  90. </li></ul></dd>
  91. </dl>
  92. </article>
  93. </section>
  94. </div>
  95. <nav>
  96. <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="AnimationTimer.html">AnimationTimer</a></li><li><a href="BarGraph.html">BarGraph</a></li><li><a href="BezierCurve.html">BezierCurve</a></li><li><a href="Box.html">Box</a></li><li><a href="Box2.html">Box2</a></li><li><a href="BoxMask.html">BoxMask</a></li><li><a href="Circle.html">Circle</a></li><li><a href="ColorStyle.html">ColorStyle</a></li><li><a href="DOM.html">DOM</a></li><li><a href="EventManager.html">EventManager</a></li><li><a href="FileUtils.html">FileUtils</a></li><li><a href="Gauge.html">Gauge</a></li><li><a href="GradientColorStop.html">GradientColorStop</a></li><li><a href="GradientStyle.html">GradientStyle</a></li><li><a href="Graph.html">Graph</a></li><li><a href="Helpers.html">Helpers</a></li><li><a href="Image.html">Image</a></li><li><a href="Key.html">Key</a></li><li><a href="Line.html">Line</a></li><li><a href="LinearGradientStyle.html">LinearGradientStyle</a></li><li><a href="Mask.html">Mask</a></li><li><a href="Matrix.html">Matrix</a></li><li><a href="MultiLineText.html">MultiLineText</a></li><li><a href="Node.html">Node</a></li><li><a href="NodeConnector.html">NodeConnector</a></li><li><a href="NodeGraph.html">NodeGraph</a></li><li><a href="NodeSocket.html">NodeSocket</a></li><li><a href="Object2D.html">Object2D</a></li><li><a href="Path.html">Path</a></li><li><a href="Pattern.html">Pattern</a></li><li><a href="PatternStyle.html">PatternStyle</a></li><li><a href="PieChart.html">PieChart</a></li><li><a href="Pointer.html">Pointer</a></li><li><a href="QuadraticCurve.html">QuadraticCurve</a></li><li><a href="RadialGradientStyle.html">RadialGradientStyle</a></li><li><a href="Renderer.html">Renderer</a></li><li><a href="RoundedBox.html">RoundedBox</a></li><li><a href="ScatterGraph.html">ScatterGraph</a></li><li><a href="Style.html">Style</a></li><li><a href="Text.html">Text</a></li><li><a href="UUID.html">UUID</a></li><li><a href="Vector2.html">Vector2</a></li><li><a href="Viewport.html">Viewport</a></li><li><a href="ViewportControls.html">ViewportControls</a></li></ul><h3>Global</h3><ul><li><a href="global.html#writeFile">writeFile</a></li></ul>
  97. </nav>
  98. <br class="clear">
  99. <footer>
  100. Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.11</a> on Sat Sep 17 2022 14:24:36 GMT+0100 (Hora de verão da Europa Ocidental)
  101. </footer>
  102. <script> prettyPrint(); </script>
  103. <script src="scripts/linenumber.js"> </script>
  104. </body>
  105. </html>