_color_units_8h_source.html
33.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hueplusplus: include/hueplusplus/ColorUnits.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">hueplusplus
 <span id="projectnumber">1.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_e05b4b7707bd5f9fd045e8be02b17d0a.html">hueplusplus</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ColorUnits.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_color_units_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef INCLUDE_HUEPLUSPLUS_UNITS_H</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#define INCLUDE_HUEPLUSPLUS_UNITS_H</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <cstdint></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span><a class="code" href="namespacehueplusplus.html">hueplusplus</a></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_hue_saturation.html"> 31</a></span> <span class="keyword">struct </span><a class="code" href="structhueplusplus_1_1_hue_saturation.html">HueSaturation</a></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_hue_saturation.html#ac98220c26f659277ab4377e712867893"> 36</a></span>  <span class="keywordtype">int</span> <a class="code" href="structhueplusplus_1_1_hue_saturation.html#ac98220c26f659277ab4377e712867893">hue</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_hue_saturation.html#a296e1ceda5a9168bf3ab90b5647d0501"> 40</a></span>  <span class="keywordtype">int</span> <a class="code" href="structhueplusplus_1_1_hue_saturation.html#a296e1ceda5a9168bf3ab90b5647d0501">saturation</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_hue_saturation.html#a295b9a224ac68beda9e0947d859ed239"> 42</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_hue_saturation.html#a295b9a224ac68beda9e0947d859ed239">operator==</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_hue_saturation.html">HueSaturation</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hue == other.<a class="code" href="structhueplusplus_1_1_hue_saturation.html#ac98220c26f659277ab4377e712867893">hue</a> && saturation == other.<a class="code" href="structhueplusplus_1_1_hue_saturation.html#a296e1ceda5a9168bf3ab90b5647d0501">saturation</a>; }</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_hue_saturation.html#acefbc6c45566e9a7536b36d639af0b9c"> 43</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_hue_saturation.html#acefbc6c45566e9a7536b36d639af0b9c">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_hue_saturation.html">HueSaturation</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == other); }</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> };</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y.html"> 47</a></span> <span class="keyword">struct </span><a class="code" href="structhueplusplus_1_1_x_y.html">XY</a></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> {</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y.html#a69014a0d04d9edc769a146cac6cad0e1"> 50</a></span>  <span class="keywordtype">float</span> <a class="code" href="structhueplusplus_1_1_x_y.html#a69014a0d04d9edc769a146cac6cad0e1">x</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y.html#a1b6133bce8576cdb72921678404c6dd6"> 52</a></span>  <span class="keywordtype">float</span> <a class="code" href="structhueplusplus_1_1_x_y.html#a1b6133bce8576cdb72921678404c6dd6">y</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y.html#a1b7040da4a539a7c7806a221cdb4b271"> 54</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_x_y.html#a1b7040da4a539a7c7806a221cdb4b271">operator==</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> x == other.<a class="code" href="structhueplusplus_1_1_x_y.html#a69014a0d04d9edc769a146cac6cad0e1">x</a> && y == other.<a class="code" href="structhueplusplus_1_1_x_y.html#a1b6133bce8576cdb72921678404c6dd6">y</a>; }</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y.html#a530a1d70fa5fe01eaad444e37b69ceb8"> 55</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_x_y.html#a530a1d70fa5fe01eaad444e37b69ceb8">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == other); }</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> };</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y_brightness.html"> 62</a></span> <span class="keyword">struct </span><a class="code" href="structhueplusplus_1_1_x_y_brightness.html">XYBrightness</a></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> {</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y_brightness.html#aa79a3630418657ec6f9bba328b8447a2"> 65</a></span>  <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html#aa79a3630418657ec6f9bba328b8447a2">xy</a>;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y_brightness.html#a028af75d7418fdccd22d0027f83298cf"> 67</a></span>  <span class="keywordtype">float</span> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html#a028af75d7418fdccd22d0027f83298cf">brightness</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y_brightness.html#a32e4e923d11f30513c15b3c2f1269beb"> 69</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html#a32e4e923d11f30513c15b3c2f1269beb">operator==</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html">XYBrightness</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> xy == other.<a class="code" href="structhueplusplus_1_1_x_y_brightness.html#aa79a3630418657ec6f9bba328b8447a2">xy</a> && brightness == other.<a class="code" href="structhueplusplus_1_1_x_y_brightness.html#a028af75d7418fdccd22d0027f83298cf">brightness</a>; }</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_x_y_brightness.html#ab0ffec2f467f475c40db465cc685a173"> 70</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html#ab0ffec2f467f475c40db465cc685a173">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html">XYBrightness</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == other); }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> };</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_color_gamut.html"> 77</a></span> <span class="keyword">struct </span><a class="code" href="structhueplusplus_1_1_color_gamut.html">ColorGamut</a></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> {</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_color_gamut.html#acf9e80c64c782650c04e34a6b1c6b4e4"> 80</a></span>  <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a> <a class="code" href="structhueplusplus_1_1_color_gamut.html#acf9e80c64c782650c04e34a6b1c6b4e4">redCorner</a>;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_color_gamut.html#a3d93ca1f02b429cb463ceb214a01437e"> 82</a></span>  <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a> <a class="code" href="structhueplusplus_1_1_color_gamut.html#a3d93ca1f02b429cb463ceb214a01437e">greenCorner</a>;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_color_gamut.html#a9300f0d4b86be5dfae499f4e4d61c9a8"> 84</a></span>  <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a> <a class="code" href="structhueplusplus_1_1_color_gamut.html#a9300f0d4b86be5dfae499f4e4d61c9a8">blueCorner</a>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">bool</span> contains(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a>& xy) <span class="keyword">const</span>;</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a> corrected(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y.html">XY</a>& xy) <span class="keyword">const</span>;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> };</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="namespacehueplusplus_1_1gamut.html"> 94</a></span> <span class="keyword">namespace </span>gamut</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> {</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="namespacehueplusplus_1_1gamut.html#abd61ca546ae6e3d3bd168c1a42fc4f2f"> 97</a></span> constexpr <a class="code" href="structhueplusplus_1_1_color_gamut.html">ColorGamut</a> <a class="code" href="namespacehueplusplus_1_1gamut.html#abd61ca546ae6e3d3bd168c1a42fc4f2f">gamutA</a> {{0.704f, 0.296f}, {0.2151f, 0.7106f}, {0.138f, 0.08f}};</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="namespacehueplusplus_1_1gamut.html#a6da695fd06906173a05d15e77c84b821"> 99</a></span> constexpr <a class="code" href="structhueplusplus_1_1_color_gamut.html">ColorGamut</a> <a class="code" href="namespacehueplusplus_1_1gamut.html#a6da695fd06906173a05d15e77c84b821">gamutB</a> {{0.675f, 0.322f}, {0.409f, 0.518f}, {0.167f, 0.04f}};</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="namespacehueplusplus_1_1gamut.html#a3f60620a263cb256bd4c89b958d4e342"> 101</a></span> constexpr <a class="code" href="structhueplusplus_1_1_color_gamut.html">ColorGamut</a> <a class="code" href="namespacehueplusplus_1_1gamut.html#a3f60620a263cb256bd4c89b958d4e342">gamutC</a> {{0.692f, 0.308f}, {0.17f, 0.7f}, {0.153f, 0.048f}};</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="namespacehueplusplus_1_1gamut.html#a67fc106cc7ec76c28ccb357404594693"> 105</a></span> constexpr <a class="code" href="structhueplusplus_1_1_color_gamut.html">ColorGamut</a> <a class="code" href="namespacehueplusplus_1_1gamut.html#a67fc106cc7ec76c28ccb357404594693">maxGamut</a> {{1.f, 0.f}, {0.f, 1.f}, {0.f, 0.f}};</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> } <span class="comment">// namespace gamut</span></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_r_g_b.html"> 109</a></span> <span class="keyword">struct </span><a class="code" href="structhueplusplus_1_1_r_g_b.html">RGB</a></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_r_g_b.html#afc66e05c1083719bd965df87ad2a2eea"> 112</a></span>  uint8_t <a class="code" href="structhueplusplus_1_1_r_g_b.html#afc66e05c1083719bd965df87ad2a2eea">r</a>;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_r_g_b.html#a33f1e36fbdc5531fd94055729d61624d"> 114</a></span>  uint8_t <a class="code" href="structhueplusplus_1_1_r_g_b.html#a33f1e36fbdc5531fd94055729d61624d">g</a>;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_r_g_b.html#a7f0452178ad85616ff065cf56915b6f4"> 116</a></span>  uint8_t <a class="code" href="structhueplusplus_1_1_r_g_b.html#a7f0452178ad85616ff065cf56915b6f4">b</a>;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_r_g_b.html#a3be869fdba2541480c82c737219c7bb0"> 118</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_r_g_b.html#a3be869fdba2541480c82c737219c7bb0">operator==</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_r_g_b.html">RGB</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> r == other.<a class="code" href="structhueplusplus_1_1_r_g_b.html#afc66e05c1083719bd965df87ad2a2eea">r</a> && g == other.<a class="code" href="structhueplusplus_1_1_r_g_b.html#a33f1e36fbdc5531fd94055729d61624d">g</a> && b == other.<a class="code" href="structhueplusplus_1_1_r_g_b.html#a7f0452178ad85616ff065cf56915b6f4">b</a>; }</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structhueplusplus_1_1_r_g_b.html#ab1f826ed16cf47438b772b3e7323eef5"> 119</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structhueplusplus_1_1_r_g_b.html#ab1f826ed16cf47438b772b3e7323eef5">operator!=</a>(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_r_g_b.html">RGB</a>& other)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == other); }</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="structhueplusplus_1_1_x_y_brightness.html">XYBrightness</a> toXY() <span class="keyword">const</span>;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="structhueplusplus_1_1_x_y_brightness.html">XYBrightness</a> toXY(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_color_gamut.html">ColorGamut</a>& gamut) <span class="keyword">const</span>;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <a class="code" href="structhueplusplus_1_1_hue_saturation.html">HueSaturation</a> toHueSaturation() <span class="keyword">const</span>;</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keyword">static</span> <a class="code" href="structhueplusplus_1_1_r_g_b.html">RGB</a> fromXY(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html">XYBrightness</a>& xy);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">static</span> <a class="code" href="structhueplusplus_1_1_r_g_b.html">RGB</a> fromXY(<span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_x_y_brightness.html">XYBrightness</a>& xy, <span class="keyword">const</span> <a class="code" href="structhueplusplus_1_1_color_gamut.html">ColorGamut</a>& gamut);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> };</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacehueplusplus.html#a0e4f335c82751862f0f39a9e8a11820b">kelvinToMired</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> kelvin);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespacehueplusplus.html#a6228dfc645d2b2f4280959b462117244">miredToKelvin</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mired);</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> } <span class="comment">// namespace hueplusplus</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="structhueplusplus_1_1_x_y_brightness_html_ab0ffec2f467f475c40db465cc685a173"><div class="ttname"><a href="structhueplusplus_1_1_x_y_brightness.html#ab0ffec2f467f475c40db465cc685a173">hueplusplus::XYBrightness::operator!=</a></div><div class="ttdeci">bool operator!=(const XYBrightness &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:70</div></div>
<div class="ttc" id="structhueplusplus_1_1_hue_saturation_html_acefbc6c45566e9a7536b36d639af0b9c"><div class="ttname"><a href="structhueplusplus_1_1_hue_saturation.html#acefbc6c45566e9a7536b36d639af0b9c">hueplusplus::HueSaturation::operator!=</a></div><div class="ttdeci">bool operator!=(const HueSaturation &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:43</div></div>
<div class="ttc" id="structhueplusplus_1_1_r_g_b_html"><div class="ttname"><a href="structhueplusplus_1_1_r_g_b.html">hueplusplus::RGB</a></div><div class="ttdoc">Color in RGB. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:109</div></div>
<div class="ttc" id="namespacehueplusplus_html"><div class="ttname"><a href="namespacehueplusplus.html">hueplusplus</a></div><div class="ttdoc">Namespace for the hueplusplus library. </div><div class="ttdef"><b>Definition:</b> Action.h:27</div></div>
<div class="ttc" id="namespacehueplusplus_1_1gamut_html_a67fc106cc7ec76c28ccb357404594693"><div class="ttname"><a href="namespacehueplusplus_1_1gamut.html#a67fc106cc7ec76c28ccb357404594693">hueplusplus::gamut::maxGamut</a></div><div class="ttdeci">constexpr ColorGamut maxGamut</div><div class="ttdoc">Maximal gamut to be used when unknown. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:105</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_html_a530a1d70fa5fe01eaad444e37b69ceb8"><div class="ttname"><a href="structhueplusplus_1_1_x_y.html#a530a1d70fa5fe01eaad444e37b69ceb8">hueplusplus::XY::operator!=</a></div><div class="ttdeci">bool operator!=(const XY &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:55</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_html_a1b6133bce8576cdb72921678404c6dd6"><div class="ttname"><a href="structhueplusplus_1_1_x_y.html#a1b6133bce8576cdb72921678404c6dd6">hueplusplus::XY::y</a></div><div class="ttdeci">float y</div><div class="ttdoc">y coordinate in CIE, 0 to 1 </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:52</div></div>
<div class="ttc" id="structhueplusplus_1_1_r_g_b_html_afc66e05c1083719bd965df87ad2a2eea"><div class="ttname"><a href="structhueplusplus_1_1_r_g_b.html#afc66e05c1083719bd965df87ad2a2eea">hueplusplus::RGB::r</a></div><div class="ttdeci">uint8_t r</div><div class="ttdoc">Red amount from 0 to 255. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:112</div></div>
<div class="ttc" id="structhueplusplus_1_1_r_g_b_html_a3be869fdba2541480c82c737219c7bb0"><div class="ttname"><a href="structhueplusplus_1_1_r_g_b.html#a3be869fdba2541480c82c737219c7bb0">hueplusplus::RGB::operator==</a></div><div class="ttdeci">bool operator==(const RGB &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:118</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_html_a1b7040da4a539a7c7806a221cdb4b271"><div class="ttname"><a href="structhueplusplus_1_1_x_y.html#a1b7040da4a539a7c7806a221cdb4b271">hueplusplus::XY::operator==</a></div><div class="ttdeci">bool operator==(const XY &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:54</div></div>
<div class="ttc" id="namespacehueplusplus_html_a6228dfc645d2b2f4280959b462117244"><div class="ttname"><a href="namespacehueplusplus.html#a6228dfc645d2b2f4280959b462117244">hueplusplus::miredToKelvin</a></div><div class="ttdeci">unsigned int miredToKelvin(unsigned int mired)</div><div class="ttdoc">Const function that converts Mired to Kelvin. </div><div class="ttdef"><b>Definition:</b> ColorUnits.cpp:243</div></div>
<div class="ttc" id="structhueplusplus_1_1_hue_saturation_html_ac98220c26f659277ab4377e712867893"><div class="ttname"><a href="structhueplusplus_1_1_hue_saturation.html#ac98220c26f659277ab4377e712867893">hueplusplus::HueSaturation::hue</a></div><div class="ttdeci">int hue</div><div class="ttdoc">Color hue. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:36</div></div>
<div class="ttc" id="structhueplusplus_1_1_hue_saturation_html_a296e1ceda5a9168bf3ab90b5647d0501"><div class="ttname"><a href="structhueplusplus_1_1_hue_saturation.html#a296e1ceda5a9168bf3ab90b5647d0501">hueplusplus::HueSaturation::saturation</a></div><div class="ttdeci">int saturation</div><div class="ttdoc">Color saturation. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:40</div></div>
<div class="ttc" id="namespacehueplusplus_1_1gamut_html_a3f60620a263cb256bd4c89b958d4e342"><div class="ttname"><a href="namespacehueplusplus_1_1gamut.html#a3f60620a263cb256bd4c89b958d4e342">hueplusplus::gamut::gamutC</a></div><div class="ttdeci">constexpr ColorGamut gamutC</div><div class="ttdoc">Gamut C, used by newer Extended Color Lights. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:101</div></div>
<div class="ttc" id="structhueplusplus_1_1_r_g_b_html_a7f0452178ad85616ff065cf56915b6f4"><div class="ttname"><a href="structhueplusplus_1_1_r_g_b.html#a7f0452178ad85616ff065cf56915b6f4">hueplusplus::RGB::b</a></div><div class="ttdeci">uint8_t b</div><div class="ttdoc">Blue amount from 0 to 255. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:116</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_brightness_html_a32e4e923d11f30513c15b3c2f1269beb"><div class="ttname"><a href="structhueplusplus_1_1_x_y_brightness.html#a32e4e923d11f30513c15b3c2f1269beb">hueplusplus::XYBrightness::operator==</a></div><div class="ttdeci">bool operator==(const XYBrightness &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:69</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_brightness_html"><div class="ttname"><a href="structhueplusplus_1_1_x_y_brightness.html">hueplusplus::XYBrightness</a></div><div class="ttdoc">Color and brightness in CIE. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:62</div></div>
<div class="ttc" id="structhueplusplus_1_1_color_gamut_html_a9300f0d4b86be5dfae499f4e4d61c9a8"><div class="ttname"><a href="structhueplusplus_1_1_color_gamut.html#a9300f0d4b86be5dfae499f4e4d61c9a8">hueplusplus::ColorGamut::blueCorner</a></div><div class="ttdeci">XY blueCorner</div><div class="ttdoc">Blue corner in the color triangle. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:84</div></div>
<div class="ttc" id="structhueplusplus_1_1_color_gamut_html_acf9e80c64c782650c04e34a6b1c6b4e4"><div class="ttname"><a href="structhueplusplus_1_1_color_gamut.html#acf9e80c64c782650c04e34a6b1c6b4e4">hueplusplus::ColorGamut::redCorner</a></div><div class="ttdeci">XY redCorner</div><div class="ttdoc">Red corner in the color triangle. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:80</div></div>
<div class="ttc" id="structhueplusplus_1_1_r_g_b_html_a33f1e36fbdc5531fd94055729d61624d"><div class="ttname"><a href="structhueplusplus_1_1_r_g_b.html#a33f1e36fbdc5531fd94055729d61624d">hueplusplus::RGB::g</a></div><div class="ttdeci">uint8_t g</div><div class="ttdoc">Green amount from 0 to 255. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:114</div></div>
<div class="ttc" id="structhueplusplus_1_1_r_g_b_html_ab1f826ed16cf47438b772b3e7323eef5"><div class="ttname"><a href="structhueplusplus_1_1_r_g_b.html#ab1f826ed16cf47438b772b3e7323eef5">hueplusplus::RGB::operator!=</a></div><div class="ttdeci">bool operator!=(const RGB &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:119</div></div>
<div class="ttc" id="structhueplusplus_1_1_color_gamut_html_a3d93ca1f02b429cb463ceb214a01437e"><div class="ttname"><a href="structhueplusplus_1_1_color_gamut.html#a3d93ca1f02b429cb463ceb214a01437e">hueplusplus::ColorGamut::greenCorner</a></div><div class="ttdeci">XY greenCorner</div><div class="ttdoc">Green corner in the color triangle. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:82</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_html"><div class="ttname"><a href="structhueplusplus_1_1_x_y.html">hueplusplus::XY</a></div><div class="ttdoc">Color in CIE x and y coordinates. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:47</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_brightness_html_a028af75d7418fdccd22d0027f83298cf"><div class="ttname"><a href="structhueplusplus_1_1_x_y_brightness.html#a028af75d7418fdccd22d0027f83298cf">hueplusplus::XYBrightness::brightness</a></div><div class="ttdeci">float brightness</div><div class="ttdoc">Brightness from 0 to 1. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:67</div></div>
<div class="ttc" id="structhueplusplus_1_1_color_gamut_html"><div class="ttname"><a href="structhueplusplus_1_1_color_gamut.html">hueplusplus::ColorGamut</a></div><div class="ttdoc">Triangle of representable colors in CIE. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:77</div></div>
<div class="ttc" id="structhueplusplus_1_1_hue_saturation_html_a295b9a224ac68beda9e0947d859ed239"><div class="ttname"><a href="structhueplusplus_1_1_hue_saturation.html#a295b9a224ac68beda9e0947d859ed239">hueplusplus::HueSaturation::operator==</a></div><div class="ttdeci">bool operator==(const HueSaturation &other) const</div><div class="ttdef"><b>Definition:</b> ColorUnits.h:42</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_brightness_html_aa79a3630418657ec6f9bba328b8447a2"><div class="ttname"><a href="structhueplusplus_1_1_x_y_brightness.html#aa79a3630418657ec6f9bba328b8447a2">hueplusplus::XYBrightness::xy</a></div><div class="ttdeci">XY xy</div><div class="ttdoc">XY color. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:65</div></div>
<div class="ttc" id="namespacehueplusplus_1_1gamut_html_abd61ca546ae6e3d3bd168c1a42fc4f2f"><div class="ttname"><a href="namespacehueplusplus_1_1gamut.html#abd61ca546ae6e3d3bd168c1a42fc4f2f">hueplusplus::gamut::gamutA</a></div><div class="ttdeci">constexpr ColorGamut gamutA</div><div class="ttdoc">Gamut A, used by most Color Lights. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:97</div></div>
<div class="ttc" id="structhueplusplus_1_1_hue_saturation_html"><div class="ttname"><a href="structhueplusplus_1_1_hue_saturation.html">hueplusplus::HueSaturation</a></div><div class="ttdoc">Color in hue and saturation. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:31</div></div>
<div class="ttc" id="namespacehueplusplus_html_a0e4f335c82751862f0f39a9e8a11820b"><div class="ttname"><a href="namespacehueplusplus.html#a0e4f335c82751862f0f39a9e8a11820b">hueplusplus::kelvinToMired</a></div><div class="ttdeci">unsigned int kelvinToMired(unsigned int kelvin)</div><div class="ttdoc">Const function that converts Kelvin to Mired. </div><div class="ttdef"><b>Definition:</b> ColorUnits.cpp:238</div></div>
<div class="ttc" id="structhueplusplus_1_1_x_y_html_a69014a0d04d9edc769a146cac6cad0e1"><div class="ttname"><a href="structhueplusplus_1_1_x_y.html#a69014a0d04d9edc769a146cac6cad0e1">hueplusplus::XY::x</a></div><div class="ttdeci">float x</div><div class="ttdoc">x coordinate in CIE, 0 to 1 </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:50</div></div>
<div class="ttc" id="namespacehueplusplus_1_1gamut_html_a6da695fd06906173a05d15e77c84b821"><div class="ttname"><a href="namespacehueplusplus_1_1gamut.html#a6da695fd06906173a05d15e77c84b821">hueplusplus::gamut::gamutB</a></div><div class="ttdeci">constexpr ColorGamut gamutB</div><div class="ttdoc">Gamut B, used by older Extended Color Lights. </div><div class="ttdef"><b>Definition:</b> ColorUnits.h:99</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>