Extra "ports" of juce-based plugins using the distrho build system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

372 lines
10KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>protoplug: Class juce.ColourGradient</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <a href="http://osar.fr">
  20. <div class=osarlogo> </div>
  21. </a>
  22. <br/>
  23. <a href="http://osar.fr/protoplug">
  24. <h1>protoplug</h1>
  25. </a>
  26. <span class="proto_subtitle">Lua API reference</span>
  27. <ul>
  28. <li><a href="../index.html">Index</a></li>
  29. </ul>
  30. <h2>Contents</h2>
  31. <ul>
  32. <li><a href="#Constructors">Constructors</a></li>
  33. <li><a href="#Methods">Methods</a></li>
  34. </ul>
  35. <h2>Classes</h2>
  36. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  37. <li><a href="../classes/juce.AffineTransform.html">juce.AffineTransform</a></li>
  38. <li><a href="../classes/juce.AudioFormatReader.html">juce.AudioFormatReader</a></li>
  39. <li><a href="../classes/juce.Colour.html">juce.Colour</a></li>
  40. <li><strong>juce.ColourGradient</strong></li>
  41. <li><a href="../classes/juce.Component.html">juce.Component</a></li>
  42. <li><a href="../classes/juce.FillType.html">juce.FillType</a></li>
  43. <li><a href="../classes/juce.Font.html">juce.Font</a></li>
  44. <li><a href="../classes/juce.Graphics.html">juce.Graphics</a></li>
  45. <li><a href="../classes/juce.Image.html">juce.Image</a></li>
  46. <li><a href="../classes/juce.Justification.html">juce.Justification</a></li>
  47. <li><a href="../classes/juce.LagrangeInterpolator.html">juce.LagrangeInterpolator</a></li>
  48. <li><a href="../classes/juce.Line.html">juce.Line</a></li>
  49. <li><a href="../classes/juce.Path.html">juce.Path</a></li>
  50. <li><a href="../classes/juce.Point.html">juce.Point</a></li>
  51. <li><a href="../classes/juce.RectanglePlacement.html">juce.RectanglePlacement</a></li>
  52. <li><a href="../classes/juce.Rectangle_float.html">juce.Rectangle_float</a></li>
  53. <li><a href="../classes/juce.Rectangle_int.html">juce.Rectangle_int</a></li>
  54. </ul>
  55. <h2>Modules</h2>
  56. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  57. <li><a href="../modules/plugin.html">plugin</a></li>
  58. <li><a href="../modules/script.html">script</a></li>
  59. <li><a href="../modules/midi.html">midi</a></li>
  60. <li><a href="../modules/gui.html">gui</a></li>
  61. <li><a href="../modules/polyGen.html">polyGen</a></li>
  62. <li><a href="../modules/stereoFx.html">stereoFx</a></li>
  63. </ul>
  64. <h2>Examples</h2>
  65. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  66. <li><a href="../examples/classic-filter.lua.html">classic-filter.lua</a></li>
  67. <li><a href="../examples/sine-organ.lua.html">sine-organ.lua</a></li>
  68. <li><a href="../examples/midi-chordify.lua.html">midi-chordify.lua</a></li>
  69. <li><a href="../examples/sinemouse-demo.lua.html">sinemouse-demo.lua</a></li>
  70. <li><a href="../examples/soundfile-test.lua.html">soundfile-test.lua</a></li>
  71. </ul>
  72. </div>
  73. <div id="content">
  74. <h1>Class <code>juce.ColourGradient</code></h1>
  75. <p>Colour Gradient.</p>
  76. <p> Is a pointer to a <a href="http://www.juce.com/api/classColourGradient.html">JUCE ColourGradient</a></p>
  77. <h2><a href="#Constructors">Constructors</a></h2>
  78. <table class="function_list">
  79. <tr>
  80. <td class="name" nowrap><a href="#juce.ColourGradient.Colour"><span class="proto_prefix">juce</span>.ColourGradient (colour1, x1, y1, colour2, x2, y2, isRadial)</a></td>
  81. <td class="summary">Constuctor.</td>
  82. </tr>
  83. </table>
  84. <h2><a href="#Methods">Methods</a></h2>
  85. <table class="function_list">
  86. <tr>
  87. <td class="name" nowrap><a href="#juce.ColourGradient:addColour"><span class="proto_prefix">juce.ColourGradient</span>:addColour<br> (proportionAlongGradient, colour)</a></td>
  88. <td class="summary">Add colour.</td>
  89. </tr>
  90. <tr>
  91. <td class="name" nowrap><a href="#juce.ColourGradient:removeColour"><span class="proto_prefix">juce.ColourGradient</span>:removeColour (index)</a></td>
  92. <td class="summary">Remove colour.</td>
  93. </tr>
  94. <tr>
  95. <td class="name" nowrap><a href="#juce.ColourGradient:multiplyOpacity"><span class="proto_prefix">juce.ColourGradient</span>:multiplyOpacity (multiplier)</a></td>
  96. <td class="summary">Multiply opacity.</td>
  97. </tr>
  98. <tr>
  99. <td class="name" nowrap><a href="#juce.ColourGradient:getNumColours"><span class="proto_prefix">juce.ColourGradient</span>:getNumColours ()</a></td>
  100. <td class="summary">Get number colour.</td>
  101. </tr>
  102. <tr>
  103. <td class="name" nowrap><a href="#juce.ColourGradient:getColour"><span class="proto_prefix">juce.ColourGradient</span>:getColour (index)</a></td>
  104. <td class="summary">Get colour.</td>
  105. </tr>
  106. <tr>
  107. <td class="name" nowrap><a href="#juce.ColourGradient:setColour"><span class="proto_prefix">juce.ColourGradient</span>:setColour (index, newColour)</a></td>
  108. <td class="summary">Get colour.</td>
  109. </tr>
  110. <tr>
  111. <td class="name" nowrap><a href="#juce.ColourGradient:getColourAtPosition"><span class="proto_prefix">juce.ColourGradient</span>:getColourAtPosition (position)</a></td>
  112. <td class="summary">Get interpolated colour</td>
  113. </tr>
  114. </table>
  115. <br/>
  116. <br/>
  117. <h2><a name="Constructors"></a>Constructors</h2>
  118. <dl class="function">
  119. <dt>
  120. <a name = "juce.ColourGradient.Colour"></a>
  121. <strong><span class="proto_prefix">juce</span>.ColourGradient (colour1, x1, y1, colour2, x2, y2, isRadial)</strong>
  122. </dt>
  123. <dd>
  124. Constuctor.
  125. </ul>
  126. <h3>Parameters:</h3>
  127. <ul>
  128. <li><span class="parameter">colour1</span>
  129. <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
  130. colour at the beginning of the gradient
  131. </li>
  132. <li><span class="parameter">x1</span>
  133. coordinates of colour1
  134. </li>
  135. <li><span class="parameter">y1</span>
  136. coordinates of colour1
  137. </li>
  138. <li><span class="parameter">colour2</span>
  139. <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
  140. colour at the end of the gradient
  141. </li>
  142. <li><span class="parameter">x2</span>
  143. coordinates of colour2
  144. </li>
  145. <li><span class="parameter">y2</span>
  146. coordinates of colour2
  147. </li>
  148. <li><span class="parameter">isRadial</span>
  149. <span class="types"><span class="type">boolean</span></span>
  150. whether the gradient should be linear or radial
  151. </li>
  152. </ul>
  153. </dd>
  154. </dl>
  155. <h2><a name="Methods"></a>Methods</h2>
  156. <dl class="function">
  157. <dt>
  158. <a name = "juce.ColourGradient:addColour"></a>
  159. <strong><span class="proto_prefix">juce.ColourGradient</span>:addColour<br> (proportionAlongGradient, colour)</strong>
  160. </dt>
  161. <dd>
  162. Add colour.
  163. Any number of colours can be added between the start and end of the gradient.
  164. </ul>
  165. <h3>Parameters:</h3>
  166. <ul>
  167. <li><span class="parameter">proportionAlongGradient</span>
  168. </li>
  169. <li><span class="parameter">colour</span>
  170. <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
  171. </li>
  172. </ul>
  173. <h3>Returns:</h3>
  174. <ol>
  175. the new colour's index
  176. </ol>
  177. </dd>
  178. <dt>
  179. <a name = "juce.ColourGradient:removeColour"></a>
  180. <strong><span class="proto_prefix">juce.ColourGradient</span>:removeColour (index)</strong>
  181. </dt>
  182. <dd>
  183. Remove colour.
  184. </ul>
  185. <h3>Parameters:</h3>
  186. <ul>
  187. <li><span class="parameter">index</span>
  188. colour index between 0 and getNumColours() - 1
  189. </li>
  190. </ul>
  191. </dd>
  192. <dt>
  193. <a name = "juce.ColourGradient:multiplyOpacity"></a>
  194. <strong><span class="proto_prefix">juce.ColourGradient</span>:multiplyOpacity (multiplier)</strong>
  195. </dt>
  196. <dd>
  197. Multiply opacity.
  198. </ul>
  199. <h3>Parameters:</h3>
  200. <ul>
  201. <li><span class="parameter">multiplier</span>
  202. factor to multiply the alpha values by
  203. </li>
  204. </ul>
  205. </dd>
  206. <dt>
  207. <a name = "juce.ColourGradient:getNumColours"></a>
  208. <strong><span class="proto_prefix">juce.ColourGradient</span>:getNumColours ()</strong>
  209. </dt>
  210. <dd>
  211. Get number colour.
  212. </ul>
  213. <h3>Returns:</h3>
  214. <ol>
  215. the number of colours
  216. </ol>
  217. </dd>
  218. <dt>
  219. <a name = "juce.ColourGradient:getColour"></a>
  220. <strong><span class="proto_prefix">juce.ColourGradient</span>:getColour (index)</strong>
  221. </dt>
  222. <dd>
  223. Get colour.
  224. </ul>
  225. <h3>Parameters:</h3>
  226. <ul>
  227. <li><span class="parameter">index</span>
  228. colour index between 0 and getNumColours() - 1
  229. </li>
  230. </ul>
  231. <h3>Returns:</h3>
  232. <ol>
  233. <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
  234. the coulour at the specified index
  235. </ol>
  236. </dd>
  237. <dt>
  238. <a name = "juce.ColourGradient:setColour"></a>
  239. <strong><span class="proto_prefix">juce.ColourGradient</span>:setColour (index, newColour)</strong>
  240. </dt>
  241. <dd>
  242. Get colour.
  243. </ul>
  244. <h3>Parameters:</h3>
  245. <ul>
  246. <li><span class="parameter">index</span>
  247. colour index between 0 and getNumColours() - 1
  248. </li>
  249. <li><span class="parameter">newColour</span>
  250. <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
  251. </li>
  252. </ul>
  253. </dd>
  254. <dt>
  255. <a name = "juce.ColourGradient:getColourAtPosition"></a>
  256. <strong><span class="proto_prefix">juce.ColourGradient</span>:getColourAtPosition (position)</strong>
  257. </dt>
  258. <dd>
  259. Get interpolated colour
  260. </ul>
  261. <h3>Parameters:</h3>
  262. <ul>
  263. <li><span class="parameter">position</span>
  264. the position between 0 and 1
  265. </li>
  266. </ul>
  267. <h3>Returns:</h3>
  268. <ol>
  269. <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
  270. the interpolated colour at the specified position
  271. </ol>
  272. </dd>
  273. </dl>
  274. </div> <!-- id="content" -->
  275. </div> <!-- id="main" -->
  276. <div id="about">
  277. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
  278. </div> <!-- id="about" -->
  279. </div> <!-- id="container" -->
  280. </body>
  281. </html>