| 1 |
chroma.js - JavaScript library for color conversions |
| 2 |
|
| 3 |
Copyright (c) 2011-2018, Gregor Aisch |
| 4 |
All rights reserved. |
| 5 |
|
| 6 |
Redistribution and use in source and binary forms, with or without |
| 7 |
modification, are permitted provided that the following conditions are met: |
| 8 |
|
| 9 |
1. Redistributions of source code must retain the above copyright notice, this |
| 10 |
list of conditions and the following disclaimer. |
| 11 |
|
| 12 |
2. Redistributions in binary form must reproduce the above copyright notice, |
| 13 |
this list of conditions and the following disclaimer in the documentation |
| 14 |
and/or other materials provided with the distribution. |
| 15 |
|
| 16 |
3. The name Gregor Aisch may not be used to endorse or promote products |
| 17 |
derived from this software without specific prior written permission. |
| 18 |
|
| 19 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 20 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 21 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 22 |
DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 23 |
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 24 |
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 |
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 26 |
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 27 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 28 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 |
|
| 30 |
------------------------------------------------------- |
| 31 |
|
| 32 |
chroma.js includes colors from colorbrewer2.org, which are released under |
| 33 |
the following license: |
| 34 |
|
| 35 |
Copyright (c) 2002 Cynthia Brewer, Mark Harrower, |
| 36 |
and The Pennsylvania State University. |
| 37 |
|
| 38 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 39 |
you may not use this file except in compliance with the License. |
| 40 |
You may obtain a copy of the License at |
| 41 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 42 |
|
| 43 |
Unless required by applicable law or agreed to in writing, |
| 44 |
software distributed under the License is distributed on an |
| 45 |
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, |
| 46 |
either express or implied. See the License for the specific |
| 47 |
language governing permissions and limitations under the License. |
| 48 |
|
| 49 |
------------------------------------------------------ |
| 50 |
|
| 51 |
Named colors are taken from X11 Color Names. |
| 52 |
http://www.w3.org/TR/css3-color/#svg-color |
| 53 |
|
| 54 |
@preserve |