Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertumnus committed Jun 12, 2019
1 parent 266b82e commit 6edb34a
Show file tree
Hide file tree
Showing 10 changed files with 749 additions and 643 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Expand Up @@ -59,7 +59,7 @@ module.exports = function (grunt) {
}
})

grunt.loadNpmTasks('grunt-contrib-uglify')
grunt.loadNpmTasks('grunt-contrib-uglify-es')
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.loadNpmTasks('grunt-jsdoc')
grunt.loadNpmTasks('grunt-npm-command')
Expand Down
34 changes: 30 additions & 4 deletions doc/ColorEffects.html
Expand Up @@ -28,7 +28,7 @@ <h1 class="page-title">Class: ColorEffects</h1>

<header>

<h2><span class="attribs"><span class="type-signature"></span></span>ColorEffects<span class="signature">(pixel)</span><span class="type-signature"></span></h2>
<h2><span class="attribs"><span class="type-signature"></span></span>ColorEffects<span class="signature">(pixel)</span><span class="type-signature"> &rarr; {<a href="ColorEffects.html">ColorEffects</a>}</span></h2>

<div class="class-description">Color Effects class
Each effect method returns an array for the given number of pixels.
Expand All @@ -47,7 +47,7 @@ <h2>Constructor</h2>



<h4 class="name" id="ColorEffects"><span class="type-signature"></span>new ColorEffects<span class="signature">(pixel)</span><span class="type-signature"></span></h4>
<h4 class="name" id="ColorEffects"><span class="type-signature"></span>new ColorEffects<span class="signature">(pixel)</span><span class="type-signature"> &rarr; {<a href="ColorEffects.html">ColorEffects</a>}</span></h4>



Expand Down Expand Up @@ -148,7 +148,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="effects.js.html">effects.js</a>, <a href="effects.js.html#line20">line 20</a>
<a href="effects.js.html">effects.js</a>, <a href="effects.js.html#line26">line 26</a>
</li></ul></dd>


Expand All @@ -173,6 +173,26 @@ <h5>Parameters:</h5>



<h5>Returns:</h5>




<dl>
<dt>
Type
</dt>
<dd>

<span class="param-type"><a href="ColorEffects.html">ColorEffects</a></span>


</dd>
</dl>







Expand Down Expand Up @@ -355,6 +375,8 @@ <h5>Parameters:</h5>





<h5>Returns:</h5>


Expand Down Expand Up @@ -508,6 +530,8 @@ <h5>Parameters:</h5>





<h5>Returns:</h5>


Expand Down Expand Up @@ -612,6 +636,8 @@ <h4 class="name" id="random"><span class="type-signature"></span>random<span cla





<h5>Returns:</h5>


Expand Down Expand Up @@ -657,7 +683,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ColorEffe
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.4</a> on Sat Sep 02 2017 00:01:27 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Thu Jun 13 2019 00:16:57 GMT+0200 (GMT+02:00)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/effects.js.html
Expand Up @@ -159,7 +159,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ColorEffe
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.4</a> on Sat Sep 02 2017 00:01:27 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Thu Jun 13 2019 00:16:57 GMT+0200 (GMT+02:00)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/global.html
Expand Up @@ -264,7 +264,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ColorEffe
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.4</a> on Sat Sep 02 2017 00:01:27 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Thu Jun 13 2019 00:16:57 GMT+0200 (GMT+02:00)
</footer>

<script> prettyPrint(); </script>
Expand Down
48 changes: 35 additions & 13 deletions doc/index.html
Expand Up @@ -43,30 +43,52 @@ <h3> </h3>


<section>
<article><h1>Color Effects</h1><p><a href="https://www.codacy.com/app/Vertumnus/js-color-effects?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Vertumnus/js-color-effects&amp;utm_campaign=Badge_Grade"><img src="https://api.codacy.com/project/badge/Grade/773ea16098ed4dfa9390f33ea0d93d7a" alt="Codacy Badge"></a>
<article><h1>Color Effects</h1>
<p><a href="https://www.codacy.com/app/Vertumnus/js-color-effects?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=Vertumnus/js-color-effects&amp;utm_campaign=Badge_Grade"><img src="https://api.codacy.com/project/badge/Grade/773ea16098ed4dfa9390f33ea0d93d7a" alt="Codacy Badge"></a>
<a href="https://coveralls.io/github/Vertumnus/js-color-effects?branch=master"><img src="https://coveralls.io/repos/github/Vertumnus/js-color-effects/badge.svg?branch=master" alt="Coverage Status"></a>
<a href="https://www.npmjs.com/package/color-effects"><img src="https://img.shields.io/npm/dt/color-effects.svg" alt="npm"></a>
<a href="https://www.npmjs.com/package/color-effects"><img src="https://img.shields.io/npm/v/color-effects.svg" alt="npm"></a>
<a href="https://www.npmjs.com/package/color-effects"><img src="https://img.shields.io/npm/l/color-effects.svg" alt="npm"></a></p>
<p>This library contains a javascript class. The class provides several color effect
generations and provides always an array with colors, whereby the color itself is an
<p>This library contains a javascript class. The class provides several color effect
generations and provides always an array with colors, whereby the color itself is an
array containing a red, green and blue value.</p>
<h2>Precondition</h2><p>The library is implemented in ECMAScript 2015, so your project should support
<h2>Precondition</h2>
<p>The library is implemented in ECMAScript 2015, so your project should support
at least this version.</p>
<h2>Installation</h2><p>Install it via npm:</p>
<pre class="prettyprint source lang-shell"><code>$ npm install color-effects</code></pre><h2>Usage</h2><p>Start with importing the module via:</p>
<pre class="prettyprint source lang-js"><code>var ColorEffects = require('color-effects')</code></pre><p>Create an instance providing the number of pixels (lights, leds). This will be
<h2>Installation</h2>
<p>Install it via npm:</p>
<pre class="prettyprint source lang-shell"><code>$ npm install color-effects
</code></pre>
<h2>Usage</h2>
<p>Start with importing the module via:</p>
<pre class="prettyprint source lang-js"><code>var ColorEffects = require('color-effects')
</code></pre>
<p>Create an instance providing the number of pixels (lights, leds). This will be
the number of colors in the returned array of each effect method.</p>
<pre class="prettyprint source lang-js"><code>// 32 pixels
var effects = new ColorEffects(32)</code></pre><h3>Supported Effects</h3><h4>Rainbow</h4><p>Generate a rainbow:</p>
var effects = new ColorEffects(32)
</code></pre>
<h3>Supported Effects</h3>
<h4>Rainbow</h4>
<p>Generate a rainbow:</p>
<pre class="prettyprint source lang-js"><code>// generated array starts with red and ends with violet
var rainbow = effects.rainbow()
// reversed rainbow (from violet to red)
var rainbowReverse = effects.rainbow(true)</code></pre><h4>Fade</h4><p>Generate a color gradient from a color to another color:</p>
var rainbowReverse = effects.rainbow(true)
</code></pre>
<h4>Fade</h4>
<p>Generate a color gradient from a color to another color:</p>
<pre class="prettyprint source lang-js"><code>// from red to blue
var colors = effects.fade('#ff0000', 'rgb(0, 0, 255)')</code></pre><h4>Random</h4><p>Generate a collection of random colors:</p>
<pre class="prettyprint source lang-js"><code>var chaos = effects.random()</code></pre><h2>API</h2><p>Check out the <a href="doc">documentation</a> for details.</p>
<h2>License</h2><p>MIT</p></article>
var colors = effects.fade('#ff0000', 'rgb(0, 0, 255)')
</code></pre>
<h4>Random</h4>
<p>Generate a collection of random colors:</p>
<pre class="prettyprint source lang-js"><code>var chaos = effects.random()
</code></pre>
<h2>API</h2>
<p>Check out the <a href="doc">documentation</a> for details.</p>
<h2>License</h2>
<p>MIT</p></article>
</section>


Expand All @@ -83,7 +105,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ColorEffe
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.4</a> on Sat Sep 02 2017 00:01:27 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.2</a> on Thu Jun 13 2019 00:16:57 GMT+0200 (GMT+02:00)
</footer>

<script> prettyPrint(); </script>
Expand Down
18 changes: 9 additions & 9 deletions doc/scripts/linenumber.js
@@ -1,12 +1,12 @@
/*global document */
(function() {
var source = document.getElementsByClassName('prettyprint source linenums');
var i = 0;
var lineNumber = 0;
var lineId;
var lines;
var totalLines;
var anchorHash;
(() => {
const source = document.getElementsByClassName('prettyprint source linenums');
let i = 0;
let lineNumber = 0;
let lineId;
let lines;
let totalLines;
let anchorHash;

if (source && source[0]) {
anchorHash = document.location.hash.substring(1);
Expand All @@ -15,7 +15,7 @@

for (; i < totalLines; i++) {
lineNumber++;
lineId = 'line' + lineNumber;
lineId = `line${lineNumber}`;
lines[i].id = lineId;
if (lineId === anchorHash) {
lines[i].className += ' selected';
Expand Down
4 changes: 2 additions & 2 deletions doc/styles/jsdoc-default.css
Expand Up @@ -273,7 +273,7 @@ tr > th:last-child { border-right: 1px solid #ddd; }
margin: 0;
}

.prettyprint
.source
{
border: 1px solid #ddd;
width: 80%;
Expand All @@ -284,7 +284,7 @@ tr > th:last-child { border-right: 1px solid #ddd; }
width: inherit;
}

.prettyprint code
.source code
{
font-size: 100%;
line-height: 18px;
Expand Down
4 changes: 2 additions & 2 deletions lib/color-effects.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6edb34a

Please sign in to comment.