Interface IColorBehavior
Represents a behavior of a color for base operations.
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public interface IColorBehavior
Methods
| Edit this page View SourceBlend(in Color, in Color)
Blends a Color over this color.
Declaration
Color Blend(in Color baseColor, in Color blendColor)
Parameters
Type | Name | Description |
---|---|---|
Color | baseColor | The Color to to blend over. |
Color | blendColor | The Color to blend. |
Returns
Type | Description |
---|---|
Color |
Equals(in Color, in Color)
Declaration
bool Equals(in Color color, in Color color2)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The first color to test. |
Color | color2 | The second color to test. |
Returns
Type | Description |
---|---|
bool |
|
Equals(in Color, object?)
Declaration
bool Equals(in Color color, object? obj)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color to test. |
object | obj | The object to test. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode(in Color)
Returns a hash code for this Color.
Declaration
int GetHashCode(in Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
Returns
Type | Description |
---|---|
int | An integer value that specifies the hash code for this Color. |
ToString(in Color)
Converts the specified Color to a string representation.
Declaration
string ToString(in Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color to convert. |
Returns
Type | Description |
---|---|
string | The string representation of the specified color. |