Updated HtmlColor object API (markdown)

Michael Miller
2024-05-24 09:54:44 -07:00
parent a6c768b77d
commit 0191432218

@@ -1,4 +1,7 @@
HtmlColor represents a color object that uses the Html color value standard that is represented by a single uint32_t. The primary use of this class is to convert to other color objects. HtmlColor represents a color object that uses the Html color value standard that is represented by a single uint32_t. The primary use of this class is to convert to other color objects.
**NOTE:** HtmlColor has no concept of W channels. It can be converted to RGB, but when converted to RGBW, RGBWW, and RGBWWW the W channels will always be empty.
Below is an example that will create a RgbColor with the Html color value for yellow. Below is an example that will create a RgbColor with the Html color value for yellow.
``` ```
RgbColor yellow( HtmlColor( 0xffff00 ) ); RgbColor yellow( HtmlColor( 0xffff00 ) );