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
7namespace PerceptualColor
8{
9/** @internal
10 *
11 * @brief Oklch default values
12 *
13 * The @ref lchrangerationale "range of Oklch values" it known.
14 * But what could be useful default values? This struct provides some
15 * proposals. All values are <tt>constexpr</tt>. */
16struct OklchValues final {
17public:
18 /** @brief Maximum chroma value as defined in @ref lchrangerationale. */
19 static constexpr int maximumChroma = 2; // TODO xxx Measure this exactly, to know if it's really appropriate!
20private:
21 /** @brief Delete the constructor to disallow creating an instance
22 * of this class. */
23 OklchValues() = delete;
24};
25
26} // namespace PerceptualColor
27
28#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 Nov 22 2024 12:00:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.