Class DefaultColorBehavior
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Implements
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class DefaultColorBehavior : IColorBehavior
Methods
| Edit this page View SourceBlend(in Color, in Color)
Blends a Color over this color.
Declaration
public 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
public 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
public 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
public 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 individual byte values of this Color to a human-readable string.
Declaration
public string ToString(in Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
Returns
Type | Description |
---|---|
string | A string that contains the individual byte values of this Color. For example "[A: 255, R: 255, G: 0, B: 0]". |