Show / Hide Table of Contents

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 Source

Blend(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
| Edit this page View Source

Equals(in Color, in Color)

Tests whether the specified object is a Color and is equivalent to this 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

true if color2 equivalent to this Color; otherwise, false.

| Edit this page View Source

Equals(in Color, object?)

Tests whether the specified object is a Color and is equivalent to this Color.

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

true if obj is a Color equivalent to this Color; otherwise, false.

| Edit this page View Source

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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX