From ded78c65000498535c03e7c2508a986c38015fc0 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 29 Mar 2023 11:13:29 -0700 Subject: [PATCH] Updated RgbColor object API (markdown) --- RgbColor-object-API.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RgbColor-object-API.md b/RgbColor-object-API.md index cfd4569..f4a15ea 100644 --- a/RgbColor-object-API.md +++ b/RgbColor-object-API.md @@ -7,6 +7,18 @@ uint8_t R; uint8_t G; uint8_t B; ``` + +There are also a few constant properties that are helpful to use. These are.. +#### Max +The highest value for a single color element. +``` + const static uint16_t Max = 255; +``` +#### Count +The number of color elements. Useful when accessing the elements using the [] operators. +``` + const static size_t Count = 3; +``` ## Constructors ### RgbColor(uint8_t r, uint8_t g, uint8_t b) :