TypeLib Xojo support Plugin |

# EinhugurColors.RGBColor Class (console safe)

A class that represents RGB color and has ability to store both 8 bits per channel and 16 bits per channel.
This class has bi directional automatic conversion to and from Xojo color.

GenericColor
RGBColor

class EinhugurColors.RGBColor

#### Properties

Alpha16 | Sets or gets 16bit Alpha value. (65535 = full opaque, 0 = full transparent)
Alpha8 | Sets or gets 8bit Alpha value. (255 = full opaque, 0 = full transparent)
Blue16 | Sets or gets 16bit Blue value.
Blue8 | Sets or gets 8bit Blue value.
Green16 | Sets or gets 16bit Green value.
Green8 | Sets or gets 8bit Green value.
Red16 | Sets or gets 16bit Red value.
Red8 | Sets or gets 8bit Red value.

#### Methods

shared From16BitComponents | Creates instance of RGBColor from 16bit components
shared From8BitComponents | Creates instance of RGBColor from 16bit components
Operator_Compare | Makes = and <> operators work to compare two instances of RGBColor.
Operator_Convert | Operator that makes RGBColor color automatically convert to Xojo Color.
Operator_Convert | Operator that makes Xojo color automatically convert to RGBColor.
ToCMYKColor | Does crude conversion to CMYKColor

####

Because of the automatic conversions to and from Xojo color then the following code stub is perfectly valid:
Dim c as EinhugurColors.RGBColor = &cFF 00 00 // Here the Xojo color automatically converts to RGBColor
Dim c2 as Color = c // Here the RGBColor automatically converts to Xojo Color

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS