Table of Contents

Class ColorExtensions

Namespace
PAC.Colour
public static class ColorExtensions
Inheritance
ColorExtensions
Inherited Members

Methods

Invert(Color, bool)

Inverts the colour, i.e. does 1 - value for each component.

public static Color Invert(this Color colour, bool invertAlpha = false)

Parameters

colour Color
invertAlpha bool

Whether to invert the alpha value as well.

Returns

Color

ToHSL(Color)

public static HSL ToHSL(this Color color)

Parameters

color Color

Returns

HSL

ToHSV(Color)

public static HSV ToHSV(this Color color)

Parameters

color Color

Returns

HSV