From 4892c3e62ff1eb8ba36565e0e03661ecde18f28b Mon Sep 17 00:00:00 2001 From: Guangyang Wen Date: Wed, 29 Nov 2017 22:34:53 +0100 Subject: [PATCH] typo luminosity --- include/color.h | 4 ++-- include/fitness.h | 2 +- python/cli.py | 8 ++++---- python/version.py | 2 +- src/python.cpp | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/color.h b/include/color.h index ecb4b92..de124ae 100644 --- a/include/color.h +++ b/include/color.h @@ -91,11 +91,11 @@ inline LAB LCHtoLAB(const LCH &lch) { } // @param T temperature in Kelvin 4000 < T < 25000 -// @param y luminocity in XYZ +// @param y luminosity in XYZ XYZ IlluminantDKelvin(double T, double y); // @param cx chromaticity x in xyY -// @param y luminocity in XYZ +// @param y luminosity in XYZ XYZ IlluminantDChromaticity(double cx, double y); } // namespace color diff --git a/include/fitness.h b/include/fitness.h index bbcec21..39a401c 100644 --- a/include/fitness.h +++ b/include/fitness.h @@ -36,7 +36,7 @@ std::ostream &operator<<(std::ostream &os, const PerceptionResult &res); /* * @param M numbers of free colors - * @param L luminocity constraint, < 0 to be ignored + * @param L luminosity constraint, < 0 to be ignored * @param maxC maximal chroma, < 0 to be ignored * @param fixed vector of fixed colors, optional * @param quiet don't write info to stdout diff --git a/python/cli.py b/python/cli.py index 5fb62ea..ad08d94 100644 --- a/python/cli.py +++ b/python/cli.py @@ -32,7 +32,7 @@ def argparser(): dest='Lf', metavar='Lf', type=float, - help='foreground luminocity between 0 < Lf < 100') + help='foreground luminosity between 0 < Lf < 100') ps.add_argument( '-b', '--background', @@ -41,16 +41,16 @@ def argparser(): dest='Lb', metavar='Lb', type=float, - help='background luminocity 0 < Lb < 100') + help='background luminosity 0 < Lb < 100') ps.add_argument( '-L', - '--palette-luminocity', + '--palette-luminosity', '--L3', default=-1, dest='L3', metavar='L3', type=float, - help='main palette luminocity 0 < L3 < 100') + help='main palette luminosity 0 < L3 < 100') ps.add_argument( '--maxC', default=-1, diff --git a/python/version.py b/python/version.py index b8023d8..d18f409 100644 --- a/python/version.py +++ b/python/version.py @@ -1 +1 @@ -__version__ = '0.0.1' +__version__ = '0.0.2' diff --git a/src/python.cpp b/src/python.cpp index c123531..16eeb12 100644 --- a/src/python.cpp +++ b/src/python.cpp @@ -176,7 +176,7 @@ static PyMethodDef methods[] = { "--------------------------------------\n" "\n" "@param M number of colors\n" - "@param L=-1 luminocity, < 0 for no constraint\n" + "@param L=-1 luminosity, < 0 for no constraint\n" "@param maxC=-1 maximal chroma, < 0 for no constraint\n" "@param fixed=None iterable of (l, a, b)\n" "@param quiet=False print messages to stdout"}, @@ -217,7 +217,7 @@ static PyMethodDef methods[] = { "----------------------\n" "\n" "@param T temperature in Kelvin, 4000 < T < 25000\n" - "@param L luminocity in LAB"}, + "@param L luminosity in LAB"}, {nullptr, nullptr, 0, nullptr}};