Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Few small typo fixes and clarifications in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Nov 7, 2017
1 parent 54807bd commit f02c48c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions demo.html
Expand Up @@ -59,16 +59,12 @@

</fieldset>
</form>
<div id=palettes title="Hover color to see its value, click to keep selection."></div>
<div id=palettes title="Hover over colour to see its value, click to keep selection."></div>
<div id=tooltip></div>
<div id=legend>
<p>“cbf” after the palette’s name means given palette is
“colourblind friendly”. All single hue palettes are colourblind
friendly.
<p>In RGB gradients the ones denoted “linear” calculate value for
the gradient prior to applying gamma function. In theory, that
means the gradient should represent perceived increase in
luminosity better.
<p>“cbf” after the palette’s name indicates given palette is “colourblind
friendly”, i.e. colours are distinguishable even by a colour-blind person.
All single hue palettes are colourblind friendly.
<p>Paul Tol’s palettes have been designed to be colourblind
friendly as well as printer friendly. More information about
them can be found at
Expand All @@ -77,11 +73,13 @@
use in maps. More information about them, including interactive
demo, can be found at
<a href=http://colorbrewer2.org>colorbrewer2.org</a>.
<p>Soralized palette have been designed by Ethan Schoonover for
use with terminal and GUI applications. As such, it has not
been optimised for use in graphs or maps, but the library
includes them nonetheless. More information about Solarized can
be found at
<p>RGB gradients denoted “linear” calculate colour value without
applying <a href=https://en.wikipedia.org/wiki/Gamma_correction>gamma
compression</a>. As such, they don’t take human perception into account.
<p>Soralized palette have been designed by Ethan Schoonover for use with
terminal and GUI applications. As such, it has not been optimised for use
in graphs or maps, but the library includes them nonetheless. More
information about Solarized can be found at
<a href=http://ethanschoonover.com/solarized>ethanschoonover.com/solarized</a>.
</div>
<script src=palette.js></script>
Expand Down
2 changes: 1 addition & 1 deletion palette.js
Expand Up @@ -807,7 +807,7 @@ palette.SchemeType;

/**
* Calculates value of a polynomial at given point.
* For example, poly(x, 1, 2, 3) calculates value of “1 + 2*x + 2*X^2”.
* For example, poly(x, 1, 2, 3) calculates value of “1 + 2*x + 3*X²”.
* @param {number} x Value to calculate polynomial for.
* @param {...number} varargs Coefficients of the polynomial specified in
* the order of rising powers of x including constant as the first
Expand Down

0 comments on commit f02c48c

Please sign in to comment.