\hypertarget{a08244}{}\section{A\+CG\+:\+:Hue\+Partitioning\+Colors Class Reference}
\label{a08244}\index{A\+C\+G\+::\+Hue\+Partitioning\+Colors@{A\+C\+G\+::\+Hue\+Partitioning\+Colors}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Utils/\+Hue\+Partitioning\+Colors.\+hh$>$}

Inheritance diagram for A\+CG\+:\+:Hue\+Partitioning\+Colors\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08244}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a08244_a168a84937ffbcb646120ff2718d19ee3}{Hue\+Partitioning\+Colors} (float \+\_\+alpha=1.\+0f, float \+\_\+base\+Hue=0.\+5694f)
\item 
virtual \hyperlink{a06176_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \hyperlink{a08244_a4cb431a5669aeebe446a785b9d3d0bb5}{generate\+Next\+Color} ()
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$class O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+OR $>$ }\\static void \hyperlink{a08244_a336a4932449f0a0ad93369a811f40bd0}{generate\+N\+Colors} (int n, O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+OR oit)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08244_a16527e15951db6adea8ee454dde53727}\label{a08244_a16527e15951db6adea8ee454dde53727}} 
int {\bfseries current\+Subdiv\+\_\+}
\item 
\mbox{\Hypertarget{a08244_ab80df95e4710af7ab35e55086e908285}\label{a08244_ab80df95e4710af7ab35e55086e908285}} 
int {\bfseries current\+It\+\_\+}
\item 
\mbox{\Hypertarget{a08244_af6dc0e29d0671da36343b8548bb50a56}\label{a08244_af6dc0e29d0671da36343b8548bb50a56}} 
int {\bfseries current\+Triad\+It\+\_\+}
\item 
\mbox{\Hypertarget{a08244_aaf797acde9c54e67e80a3321fa5827ce}\label{a08244_aaf797acde9c54e67e80a3321fa5827ce}} 
float {\bfseries alpha\+\_\+}
\item 
\mbox{\Hypertarget{a08244_a09eb3d2f470996883788f66ece6e638e}\label{a08244_a09eb3d2f470996883788f66ece6e638e}} 
float {\bfseries base\+Hue\+\_\+}
\item 
\mbox{\Hypertarget{a08244_aefcea1d949c8cc864a60f0c694777b68}\label{a08244_aefcea1d949c8cc864a60f0c694777b68}} 
const float {\bfseries default\+Saturation\+\_\+}
\item 
\mbox{\Hypertarget{a08244_a635ba00afa8e2b772e57aa280dc2c532}\label{a08244_a635ba00afa8e2b772e57aa280dc2c532}} 
const float {\bfseries default\+Value\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \hyperlink{a08244}{Hue\+Partitioning\+Colors} generator tries to generate a set of well distinguishable and esthetically somewhat pleasing colors.

Note that it intentionally behaves totally deterministic. (Because reproducibility rocks.) 

Definition at line 59 of file Hue\+Partitioning\+Colors.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a08244_a168a84937ffbcb646120ff2718d19ee3}\label{a08244_a168a84937ffbcb646120ff2718d19ee3}} 
\index{A\+C\+G\+::\+Hue\+Partitioning\+Colors@{A\+C\+G\+::\+Hue\+Partitioning\+Colors}!Hue\+Partitioning\+Colors@{Hue\+Partitioning\+Colors}}
\index{Hue\+Partitioning\+Colors@{Hue\+Partitioning\+Colors}!A\+C\+G\+::\+Hue\+Partitioning\+Colors@{A\+C\+G\+::\+Hue\+Partitioning\+Colors}}
\subsubsection{\texorpdfstring{Hue\+Partitioning\+Colors()}{HuePartitioningColors()}}
{\footnotesize\ttfamily A\+C\+G\+::\+Hue\+Partitioning\+Colors\+::\+Hue\+Partitioning\+Colors (\begin{DoxyParamCaption}\item[{float}]{\+\_\+alpha = {\ttfamily 1.0f},  }\item[{float}]{\+\_\+base\+Hue = {\ttfamily 0.5694f} }\end{DoxyParamCaption})}

Constructor


\begin{DoxyParams}{Parameters}
{\em \+\_\+alpha} & The alpha value for all the colors.\\
\hline
{\em \+\_\+base\+Hue} & The H\+S\+V-\/hue from which to start. This is the hue of the first requested color. Default is an utterly delighting shade of blue awesomeness. \\
\hline
\end{DoxyParams}


Definition at line 52 of file Hue\+Partitioning\+Colors.\+cc.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08244_a336a4932449f0a0ad93369a811f40bd0}\label{a08244_a336a4932449f0a0ad93369a811f40bd0}} 
\index{A\+C\+G\+::\+Hue\+Partitioning\+Colors@{A\+C\+G\+::\+Hue\+Partitioning\+Colors}!generate\+N\+Colors@{generate\+N\+Colors}}
\index{generate\+N\+Colors@{generate\+N\+Colors}!A\+C\+G\+::\+Hue\+Partitioning\+Colors@{A\+C\+G\+::\+Hue\+Partitioning\+Colors}}
\subsubsection{\texorpdfstring{generate\+N\+Colors()}{generateNColors()}}
{\footnotesize\ttfamily template$<$class O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+OR $>$ \\
static void A\+C\+G\+::\+Hue\+Partitioning\+Colors\+::generate\+N\+Colors (\begin{DoxyParamCaption}\item[{int}]{n,  }\item[{O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+OR}]{oit }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}

Convenience method if you just need a bunch of colors and don\textquotesingle{}t need to instantiate a \hyperlink{a08220}{Color\+Generator}.

See description of \hyperlink{a08220_a5050869eb7e806c740b90600e04b051c}{generate\+Next\+N\+Colors()} for details. 

Definition at line 86 of file Hue\+Partitioning\+Colors.\+hh.

\mbox{\Hypertarget{a08244_a4cb431a5669aeebe446a785b9d3d0bb5}\label{a08244_a4cb431a5669aeebe446a785b9d3d0bb5}} 
\index{A\+C\+G\+::\+Hue\+Partitioning\+Colors@{A\+C\+G\+::\+Hue\+Partitioning\+Colors}!generate\+Next\+Color@{generate\+Next\+Color}}
\index{generate\+Next\+Color@{generate\+Next\+Color}!A\+C\+G\+::\+Hue\+Partitioning\+Colors@{A\+C\+G\+::\+Hue\+Partitioning\+Colors}}
\subsubsection{\texorpdfstring{generate\+Next\+Color()}{generateNextColor()}}
{\footnotesize\ttfamily \hyperlink{a06176_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} A\+C\+G\+::\+Hue\+Partitioning\+Colors\+::generate\+Next\+Color (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

\begin{DoxyReturn}{Returns}
A new color. 
\end{DoxyReturn}


Implements \hyperlink{a08220_ac2cc72983068bd86ddc07930d6e19a4c}{A\+C\+G\+::\+Color\+Generator}.



Definition at line 65 of file Hue\+Partitioning\+Colors.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Utils/Hue\+Partitioning\+Colors.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Utils/Hue\+Partitioning\+Colors.\+cc\end{DoxyCompactItemize}
