From b5883b1b157fc028d2ab3324fce4ee008a40742e Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 5 Jul 2023 10:54:06 -0700 Subject: [PATCH] Updated RgbColor object API (markdown) --- RgbColor-object-API.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RgbColor-object-API.md b/RgbColor-object-API.md index 35e2161..16bb2c1 100644 --- a/RgbColor-object-API.md +++ b/RgbColor-object-API.md @@ -123,5 +123,9 @@ This will blend between four colors by the amount defined by 2d weighting values ### uint8_t operator[](size_t idx) The index operator allows accessing the R, G, and B properties using an index. There are both read only and read write versions. ``` - uint8_t green = color[1]; + uint16_t green = color[1]; +``` +You can also use the color index constants. +``` + uint16_t green = color[ColorIndexG]; ``` \ No newline at end of file