Show / Hide Table of Contents

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.

Inheritance
object
DefaultColorBehavior
Implements
IColorBehavior
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class DefaultColorBehavior : IColorBehavior

Methods

| Edit this page View Source

Blend(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
| 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
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

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
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

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
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.

| Edit this page View Source

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]".

Implements

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