diff --git a/Rgb48Color-object-API.md b/Rgb48Color-object-API.md index fd8d4bf..25a3c46 100644 --- a/Rgb48Color-object-API.md +++ b/Rgb48Color-object-API.md @@ -77,6 +77,19 @@ Lighten will adjust the color by the given delta toward white. NOTE: This is a simple linear change. > * _delta_ - (0-65535) the amount to lighten the color by. +### int32_t CompareTo(const Rgb48Color& other, uint16_t epsilon = 1) +Compares against another color with the given epsilon. +Returns the greatest difference of a set of elements, where 0 means the colors are equal within epsilon delta, negative means this is less than the other, positive means this is greater than the other. +> * _other_ - the color to compare against. +> * _epsilon_ - the max delta acceptable for them to be considered the same color. + +### static int32_t Compare(const Rgb48Color& left, const Rgb48Color& right, uint16_t epsilon = 1) +Compares two colors with the given epsilon. +Returns the greatest difference of a set of elements, where 0 means the colors are equal within epsilon delta, negative means left is less than the right, positive means left is greater than the right. +> * _left_ - the first color to compare. +> * _right_ - the other color to compare. +> * _epsilon_ - the max delta acceptable for them to be considered the same color. + ### static Rgb48Color LinearBlend(Rgb48Color left, Rgb48Color right, float progress); This will blend between two colors by the amount defined by the progress variable. > * _left_ - the color to start the blend at.