Skip to content

Colorise

Taiizor edited this page Mar 1, 2023 · 13 revisions

Colorise

A static helper class that provides color blending functionality.

Method Description Parameters Return Value
ToBlend Returns a blended color value that is the average of two given colors. RGB (SSCCS): The first color to blend. Other (SSCCS): The second color to blend. SSCCS: A blended color value that is the average of RGB and Other.
ToBlendAsync Returns a task that asynchronously computes a blended color value that is the average of two given colors. RGB (SSCCS): The first color to blend. Other (SSCCS): The second color to blend. Task<SSCCS>: A task that returns a blended color value that is the average of RGB and Other.
Method (private) Description Parameters Return Value
BlendToAvg Computes the average of two byte values. B1 (byte): The first byte value to average. B2 (byte): The second byte value to average. byte: The average of B1 and B2, rounded to the nearest integer value.
Clone this wiki locally