Perceptual Color

oklchvalues.h
1// SPDX-FileCopyrightText: Lukas Sommer <sommerluk@gmail.com>
2// SPDX-License-Identifier: BSD-2-Clause OR MIT
3
4#ifndef OKLCHVALUES_H
5#define OKLCHVALUES_H
6
7#include "lchdouble.h"
8
9namespace PerceptualColor
10{
11/** @internal
12 *
13 * @brief Oklch default values
14 *
15 * The @ref lchrangerationale "range of Oklch values" it known.
16 * But what could be useful default values? This struct provides some
17 * proposals. All values are <tt>constexpr</tt>. */
18struct OklchValues final {
19public:
20 /** @brief Maximum chroma value as defined in @ref lchrangerationale. */
21 static constexpr int maximumChroma = 2; // TODO xxx Measure this exactly, to know if it's really appropriate!
22private:
23 /** @brief Delete the constructor to disallow creating an instance
24 * of this class. */
25 OklchValues() = delete;
26};
27
28} // namespace PerceptualColor
29
30#endif // OKLCHVALUES_H
The namespace of this library.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:48:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.