From 0f7dde26d02c7328520d35b11ba52ce4492b9a8e Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 29 Mar 2023 11:17:52 -0700 Subject: [PATCH] Updated Rgb48Color object API (markdown) --- Rgb48Color-object-API.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Rgb48Color-object-API.md b/Rgb48Color-object-API.md index 21f27d4..589b405 100644 --- a/Rgb48Color-object-API.md +++ b/Rgb48Color-object-API.md @@ -100,4 +100,11 @@ This will blend between four colors by the amount defined by 2d weighting values > * _c10_ - lower left quadrant color > * _c11_ - lower right quadrant color > * _x_ - unit value (0.0 - 1.0) that defines the blend progress in horizontal space -> * _y_ - unit value (0.0 - 1.0) that defines the blend progress in vertical space \ No newline at end of file +> * _y_ - unit value (0.0 - 1.0) that defines the blend progress in vertical space + +## Operators +### uint16_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. +``` + uint16_t green = color[1]; +``` \ No newline at end of file