From 12ea4b3c25f900b4b1e90729dbcc7eb1c43ff314 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 20 Apr 2023 10:35:28 -0700 Subject: [PATCH] Updated RgbColor object API (markdown) --- RgbColor-object-API.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/RgbColor-object-API.md b/RgbColor-object-API.md index a532d09..35e2161 100644 --- a/RgbColor-object-API.md +++ b/RgbColor-object-API.md @@ -27,17 +27,21 @@ Constructs a RgbColor using Red, Green, and Blue color component values. > * g - value of Green component (0 - 255) > * b - value of Blue component (0 - 255) +### _explicit_ RgbColor(RgbwColor color); +Construct a RgbColor using RgbwColor, copying the R,G,B values and ignoring the W value. Due to the loss of information of the W value, this constructor is marked explicit so it will not automatically be used for conversion. +> * _color_ - an RgbwColor object + ### RgbColor(uint8_t brightness) Constructs a RgbColor using a single brightness value(0 - 255). This works well for creating gray tone colors. > * _brightness_ - brightness value where (0) = black, (128) = gray, (255) = white ### RgbColor(HtmlColor color); Construct a RgbColor using HtmlColor, converting the Html single value to Rgb component values -> * _color_ - an HtmlColor object +> * _color_ - an HtmlColor object ### RgbColor(HslColor color); Construct a RgbColor using HslColor, converting the Hsl to Rgb -> * _color_ - an HslColor object +> * _color_ - an HslColor object ### RgbColor(HsbColor color); Construct a RgbColor using HsbColor, converting the Hsb to Rgb