File indexing completed on 2024-05-12 04:44:34
0001 // SPDX-FileCopyrightText: Lukas Sommer <sommerluk@gmail.com> 0002 // SPDX-License-Identifier: BSD-2-Clause OR MIT 0003 0004 #ifndef OKLCHVALUES_H 0005 #define OKLCHVALUES_H 0006 0007 #include "lchdouble.h" 0008 0009 namespace PerceptualColor 0010 { 0011 /** @internal 0012 * 0013 * @brief Oklch default values 0014 * 0015 * The @ref lchrangerationale "range of Oklch values" it known. 0016 * But what could be useful default values? This struct provides some 0017 * proposals. All values are <tt>constexpr</tt>. */ 0018 struct OklchValues final { 0019 public: 0020 /** @brief Maximum chroma value as defined in @ref lchrangerationale. */ 0021 static constexpr int maximumChroma = 2; // TODO xxx Measure this exactly, to know if it's really appropriate! 0022 private: 0023 /** @brief Delete the constructor to disallow creating an instance 0024 * of this class. */ 0025 OklchValues() = delete; 0026 }; 0027 0028 } // namespace PerceptualColor 0029 0030 #endif // OKLCHVALUES_H