Table of Contents

Class SKColorExtensions

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

A static class providing SKColor extensions

public static class SKColorExtensions
Inheritance
SKColorExtensions

Methods

Darken(SKColor, float)

Darkens the color by the specified amount

public static SKColor Darken(this SKColor c, float amount)

Parameters

c SKColor

The color to darken

amount float

The brightness of the new color

Returns

SKColor

The darkened color

Interpolate(SKColor, SKColor, float)

Interpolates a color between the from and to color.

public static SKColor Interpolate(this SKColor from, SKColor to, float progress)

Parameters

from SKColor

The first color

to SKColor

The second color

progress float

A value between 0 and 1

Returns

SKColor

The interpolated color

Sum(SKColor, SKColor)

Adds the two colors together

public static SKColor Sum(this SKColor a, SKColor b)

Parameters

a SKColor

The first color

b SKColor

The second color

Returns

SKColor

The sum of the two colors

ToRgbColor(SKColor)

Converts hte SKColor to an RGB.NET color

public static Color ToRgbColor(this SKColor color)

Parameters

color SKColor

The color to convert

Returns

Color

The RGB.NET color