Color 运算符与类型转换 |
Color 类型公开以下成员。
名称 | 说明 | |
---|---|---|
Addition |
Addition operator - Adds each channel of the second color to each channel of the
first and returns the result
| |
Equality |
IsEqual operator - Compares two colors for exact equality. Note that float values can acquire error
when operated upon, such that an exact comparison between two values which are logically
equal may fail. see cref="AreClose".
| |
(String to Color) |
Parses a color string. #ffffff、r,g,b、r,g,b,a
| |
(HtmlColor to Color) | ||
Inequality |
!=
| |
Multiply |
Multiplication operator - Multiplies each channel of the color by a coefficient and returns the result
| |
Subtraction |
Subtract operator - substracts each channel of the second color from each channel of the
first and returns the result
|