From ce793fcc70e5a726ec6df6f8728f58db5b587aa4 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 29 Mar 2023 11:12:45 -0700 Subject: [PATCH] Updated Rgb48Color object API (markdown) --- Rgb48Color-object-API.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Rgb48Color-object-API.md b/Rgb48Color-object-API.md index 59fe90d..21f27d4 100644 --- a/Rgb48Color-object-API.md +++ b/Rgb48Color-object-API.md @@ -7,6 +7,19 @@ uint16_t R; uint16_t G; uint16_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 = 65535; +``` +#### Count +The number of color elements. Useful when accessing the elements using the [] operators. +``` + const static size_t Count = 3; +``` + ## Constructors ### Rgb48Color(uint16_t r, uint16_t g, uint16_t b) :