\href{https://npmjs.com/package/chartjs-color-string}{\texttt{ }} \href{https://travis-ci.org/chartjs/chartjs-color-string}{\texttt{ }}

\begin{quote}
library for parsing and generating CSS color strings. \end{quote}
\hypertarget{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5088}{}\doxysection{Install}\label{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5088}
With \href{http://npmjs.org/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install color-\/string }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5089}{}\doxysection{Usage}\label{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5089}
\hypertarget{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5090}{}\doxysubsection{Parsing}\label{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5090}

\begin{DoxyCode}{0}
\DoxyCodeLine{colorString.getRgb("{}blue"{})                       // [0, 0, 255]}
\DoxyCodeLine{colorString.getRgb("{}\#FFF"{})                       // [255, 255, 255]}
\DoxyCodeLine{colorString.getRgba("{}\#FFFA"{})                     //[255, 255, 255, 0.67]\}}
\DoxyCodeLine{colorString.getRgba("{}\#FFFFFFAA"{})                 // [255, 255, 255, 0.67]\}}
\DoxyCodeLine{}
\DoxyCodeLine{colorString.getRgba("{}rgba(200, 60, 60, 0.3)"{})    // [200, 60, 60, 0.3]}
\DoxyCodeLine{colorString.getRgba("{}rgb(200, 200, 200)"{})        // [200, 200, 200, 1]}
\DoxyCodeLine{}
\DoxyCodeLine{colorString.getHsl("{}hsl(360, 100\%, 50\%)"{})        // [360, 100, 50]}
\DoxyCodeLine{colorString.getHsla("{}hsla(360, 60\%, 50\%, 0.4)"{})  // [360, 60, 50, 0.4]}
\DoxyCodeLine{}
\DoxyCodeLine{colorString.getAlpha("{}rgba(200, 0, 12, 0.6)"{})    // 0.6 }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5091}{}\doxysubsection{Generation}\label{md_sfcode_node_modules_chartjs_color_string_README_autotoc_md5091}

\begin{DoxyCode}{0}
\DoxyCodeLine{colorString.hexString([255, 255, 255])   // "{}\#FFFFFF"{}}
\DoxyCodeLine{colorString.hexString([0, 0, 255, 0.4])    // "{}\#0000FF66"{}}
\DoxyCodeLine{colorString.hexString([0, 0, 255], 0.4)    // "{}\#0000FF66"{}}
\DoxyCodeLine{colorString.rgbString([255, 255, 255])   // "{}rgb(255, 255, 255)"{}}
\DoxyCodeLine{colorString.rgbString([0, 0, 255, 0.4])  // "{}rgba(0, 0, 255, 0.4)"{}}
\DoxyCodeLine{colorString.rgbString([0, 0, 255], 0.4)  // "{}rgba(0, 0, 255, 0.4)"{}}
\DoxyCodeLine{colorString.percentString([0, 0, 255])   // "{}rgb(0\%, 0\%, 100\%)"{}}
\DoxyCodeLine{colorString.keyword([255, 255, 0])       // "{}yellow"{}}
\DoxyCodeLine{colorString.hslString([360, 100, 100])   // "{}hsl(360, 100\%, 100\%)"{} }

\end{DoxyCode}
 