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

Commit

Permalink
Remove linear RGB gradientsn from demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Jan 25, 2018
1 parent f02c48c commit 067afa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
3 changes: 0 additions & 3 deletions demo.html
Expand Up @@ -73,9 +73,6 @@
use in maps. More information about them, including interactive
demo, can be found at
<a href=http://colorbrewer2.org>colorbrewer2.org</a>.
<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
Expand Down
35 changes: 7 additions & 28 deletions demo.js
Expand Up @@ -213,34 +213,13 @@
add('HSV Rainbow (s=.5, v=.5)', 'rainbow', 0.5, 0.5);

addHeading('RGB gradients');
add('Red',
function(x) { return palette.rgbColor(x, 0, 0); });
add('Red (linear)',
function(x) { return palette.linearRgbColor(x, 0, 0); });
add('Green',
function(x) { return palette.rgbColor(0, x, 0); });
add('Green (linear)',
function(x) { return palette.linearRgbColor(0, x, 0); });
add('Blue',
function(x) { return palette.rgbColor(0, 0, x); });
add('Blue (linear)',
function(x) { return palette.linearRgbColor(0, 0, x); });
add('Yellow',
function(x) { return palette.rgbColor(x, x, 0); });
add('Yellow (linear)',
function(x) { return palette.linearRgbColor(x, x, 0); });
add('Magenta',
function(x) { return palette.rgbColor(x, 0, x); });
add('Magenta (linear)',
function(x) { return palette.linearRgbColor(x, 0, x); });
add('Cyan',
function(x) { return palette.rgbColor(0, x, x); });
add('Cyan (linear)',
function(x) { return palette.linearRgbColor(0, x, x); });
add('Grayscale',
function(x) { return palette.rgbColor(x, x, x); });
add('Grayscale (linear)',
function(x) { return palette.linearRgbColor(x, x, x); });
add('Red', function(x) { return palette.rgbColor(x, 0, 0); });
add('Green', function(x) { return palette.rgbColor(0, x, 0); });
add('Blue', function(x) { return palette.rgbColor(0, 0, x); });
add('Yellow', function(x) { return palette.rgbColor(x, x, 0); });
add('Magenta', function(x) { return palette.rgbColor(x, 0, x); });
add('Cyan', function(x) { return palette.rgbColor(0, x, x); });
add('Grayscale', function(x) { return palette.rgbColor(x, x, x); });

addHeading('Solarized palettes');
add('Solarized base colours', 'sol-base');
Expand Down

0 comments on commit 067afa3

Please sign in to comment.