|
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <head>
- <title>protoplug: Class juce.ColourGradient</title>
- <link rel="stylesheet" href="../ldoc.css" type="text/css" />
- </head>
- <body>
-
- <div id="container">
-
- <div id="product">
- <div id="product_logo"></div>
- <div id="product_name"><big><b></b></big></div>
- <div id="product_description"></div>
- </div> <!-- id="product" -->
-
-
- <div id="main">
-
-
- <!-- Menu -->
-
- <div id="navigation">
- <a href="http://osar.fr">
- <div class=osarlogo> </div>
- </a>
- <br/>
- <a href="http://osar.fr/protoplug">
- <h1>protoplug</h1>
- </a>
- <span class="proto_subtitle">Lua API reference</span>
-
- <ul>
- <li><a href="../index.html">Index</a></li>
- </ul>
-
- <h2>Contents</h2>
- <ul>
- <li><a href="#Constructors">Constructors</a></li>
- <li><a href="#Methods">Methods</a></li>
- </ul>
-
-
- <h2>Classes</h2>
- <ul class="$(kind=='Topics' and '' or 'nowrap'">
- <li><a href="../classes/juce.AffineTransform.html">juce.AffineTransform</a></li>
- <li><a href="../classes/juce.AudioFormatReader.html">juce.AudioFormatReader</a></li>
- <li><a href="../classes/juce.Colour.html">juce.Colour</a></li>
- <li><strong>juce.ColourGradient</strong></li>
- <li><a href="../classes/juce.Component.html">juce.Component</a></li>
- <li><a href="../classes/juce.FillType.html">juce.FillType</a></li>
- <li><a href="../classes/juce.Font.html">juce.Font</a></li>
- <li><a href="../classes/juce.Graphics.html">juce.Graphics</a></li>
- <li><a href="../classes/juce.Image.html">juce.Image</a></li>
- <li><a href="../classes/juce.Justification.html">juce.Justification</a></li>
- <li><a href="../classes/juce.LagrangeInterpolator.html">juce.LagrangeInterpolator</a></li>
- <li><a href="../classes/juce.Line.html">juce.Line</a></li>
- <li><a href="../classes/juce.Path.html">juce.Path</a></li>
- <li><a href="../classes/juce.Point.html">juce.Point</a></li>
- <li><a href="../classes/juce.RectanglePlacement.html">juce.RectanglePlacement</a></li>
- <li><a href="../classes/juce.Rectangle_float.html">juce.Rectangle_float</a></li>
- <li><a href="../classes/juce.Rectangle_int.html">juce.Rectangle_int</a></li>
- </ul>
- <h2>Modules</h2>
- <ul class="$(kind=='Topics' and '' or 'nowrap'">
- <li><a href="../modules/plugin.html">plugin</a></li>
- <li><a href="../modules/script.html">script</a></li>
- <li><a href="../modules/midi.html">midi</a></li>
- <li><a href="../modules/gui.html">gui</a></li>
- <li><a href="../modules/polyGen.html">polyGen</a></li>
- <li><a href="../modules/stereoFx.html">stereoFx</a></li>
- </ul>
- <h2>Examples</h2>
- <ul class="$(kind=='Topics' and '' or 'nowrap'">
- <li><a href="../examples/classic-filter.lua.html">classic-filter.lua</a></li>
- <li><a href="../examples/sine-organ.lua.html">sine-organ.lua</a></li>
- <li><a href="../examples/midi-chordify.lua.html">midi-chordify.lua</a></li>
- <li><a href="../examples/sinemouse-demo.lua.html">sinemouse-demo.lua</a></li>
- <li><a href="../examples/soundfile-test.lua.html">soundfile-test.lua</a></li>
- </ul>
-
- </div>
-
- <div id="content">
-
- <h1>Class <code>juce.ColourGradient</code></h1>
- <p>Colour Gradient.</p>
- <p> Is a pointer to a <a href="http://www.juce.com/api/classColourGradient.html">JUCE ColourGradient</a></p>
-
-
- <h2><a href="#Constructors">Constructors</a></h2>
- <table class="function_list">
- <tr>
- <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>
- <td class="summary">Constuctor.</td>
- </tr>
- </table>
- <h2><a href="#Methods">Methods</a></h2>
- <table class="function_list">
- <tr>
- <td class="name" nowrap><a href="#juce.ColourGradient:addColour"><span class="proto_prefix">juce.ColourGradient</span>:addColour<br> (proportionAlongGradient, colour)</a></td>
- <td class="summary">Add colour.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.ColourGradient:removeColour"><span class="proto_prefix">juce.ColourGradient</span>:removeColour (index)</a></td>
- <td class="summary">Remove colour.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.ColourGradient:multiplyOpacity"><span class="proto_prefix">juce.ColourGradient</span>:multiplyOpacity (multiplier)</a></td>
- <td class="summary">Multiply opacity.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.ColourGradient:getNumColours"><span class="proto_prefix">juce.ColourGradient</span>:getNumColours ()</a></td>
- <td class="summary">Get number colour.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.ColourGradient:getColour"><span class="proto_prefix">juce.ColourGradient</span>:getColour (index)</a></td>
- <td class="summary">Get colour.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.ColourGradient:setColour"><span class="proto_prefix">juce.ColourGradient</span>:setColour (index, newColour)</a></td>
- <td class="summary">Get colour.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#juce.ColourGradient:getColourAtPosition"><span class="proto_prefix">juce.ColourGradient</span>:getColourAtPosition (position)</a></td>
- <td class="summary">Get interpolated colour</td>
- </tr>
- </table>
-
- <br/>
- <br/>
-
-
- <h2><a name="Constructors"></a>Constructors</h2>
- <dl class="function">
- <dt>
- <a name = "juce.ColourGradient.Colour"></a>
- <strong><span class="proto_prefix">juce</span>.ColourGradient (colour1, x1, y1, colour2, x2, y2, isRadial)</strong>
- </dt>
- <dd>
- Constuctor.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">colour1</span>
- <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
- colour at the beginning of the gradient
- </li>
- <li><span class="parameter">x1</span>
- coordinates of colour1
- </li>
- <li><span class="parameter">y1</span>
- coordinates of colour1
- </li>
- <li><span class="parameter">colour2</span>
- <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
- colour at the end of the gradient
- </li>
- <li><span class="parameter">x2</span>
- coordinates of colour2
- </li>
- <li><span class="parameter">y2</span>
- coordinates of colour2
- </li>
- <li><span class="parameter">isRadial</span>
- <span class="types"><span class="type">boolean</span></span>
- whether the gradient should be linear or radial
- </li>
- </ul>
-
-
-
-
-
- </dd>
- </dl>
- <h2><a name="Methods"></a>Methods</h2>
- <dl class="function">
- <dt>
- <a name = "juce.ColourGradient:addColour"></a>
- <strong><span class="proto_prefix">juce.ColourGradient</span>:addColour<br> (proportionAlongGradient, colour)</strong>
- </dt>
- <dd>
- Add colour.
- Any number of colours can be added between the start and end of the gradient.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">proportionAlongGradient</span>
-
-
-
- </li>
- <li><span class="parameter">colour</span>
- <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
-
-
-
- </li>
- </ul>
-
- <h3>Returns:</h3>
- <ol>
-
- the new colour's index
- </ol>
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.ColourGradient:removeColour"></a>
- <strong><span class="proto_prefix">juce.ColourGradient</span>:removeColour (index)</strong>
- </dt>
- <dd>
- Remove colour.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">index</span>
- colour index between 0 and getNumColours() - 1
- </li>
- </ul>
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.ColourGradient:multiplyOpacity"></a>
- <strong><span class="proto_prefix">juce.ColourGradient</span>:multiplyOpacity (multiplier)</strong>
- </dt>
- <dd>
- Multiply opacity.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">multiplier</span>
- factor to multiply the alpha values by
- </li>
- </ul>
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.ColourGradient:getNumColours"></a>
- <strong><span class="proto_prefix">juce.ColourGradient</span>:getNumColours ()</strong>
- </dt>
- <dd>
- Get number colour.
-
- </ul>
-
-
- <h3>Returns:</h3>
- <ol>
-
- the number of colours
- </ol>
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.ColourGradient:getColour"></a>
- <strong><span class="proto_prefix">juce.ColourGradient</span>:getColour (index)</strong>
- </dt>
- <dd>
- Get colour.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">index</span>
- colour index between 0 and getNumColours() - 1
- </li>
- </ul>
-
- <h3>Returns:</h3>
- <ol>
-
- <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
- the coulour at the specified index
- </ol>
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.ColourGradient:setColour"></a>
- <strong><span class="proto_prefix">juce.ColourGradient</span>:setColour (index, newColour)</strong>
- </dt>
- <dd>
- Get colour.
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">index</span>
- colour index between 0 and getNumColours() - 1
- </li>
- <li><span class="parameter">newColour</span>
- <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
-
-
-
- </li>
- </ul>
-
-
-
-
-
- </dd>
- <dt>
- <a name = "juce.ColourGradient:getColourAtPosition"></a>
- <strong><span class="proto_prefix">juce.ColourGradient</span>:getColourAtPosition (position)</strong>
- </dt>
- <dd>
- Get interpolated colour
-
- </ul>
-
- <h3>Parameters:</h3>
- <ul>
- <li><span class="parameter">position</span>
- the position between 0 and 1
- </li>
- </ul>
-
- <h3>Returns:</h3>
- <ol>
-
- <span class="types"><a class="type" href="../classes/juce.Colour.html#">juce.Colour</a></span>
- the interpolated colour at the specified position
- </ol>
-
-
-
-
- </dd>
- </dl>
-
-
- </div> <!-- id="content" -->
- </div> <!-- id="main" -->
- <div id="about">
- <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
- </div> <!-- id="about" -->
- </div> <!-- id="container" -->
- </body>
- </html>
|