C# Class Open.Core.Color

Class for working with colors.
显示文件 Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method Description
Black ( double opacity ) : string

Gets an RGBA value of black at the given opacity.

Green ( double opacity ) : string

Gets an RGBA value of green at the given opacity.

HotPink ( double opacity ) : string

Gets an RGBA value of hot-pink (magenta) at the given opacity.

Orange ( double opacity ) : string

Gets an RGBA value of orange at the given opacity.

Red ( double opacity ) : string

Gets an RGBA value of red at the given opacity.

White ( double opacity ) : string

Gets an RGBA value of white at the given opacity.

Private Methods

Method Description
Black ( ) : string
Green ( ) : string
HotPink ( ) : string
Orange ( ) : string
Red ( ) : string
ToColor ( int r, int g, int b, double percent ) : string
White ( ) : string

Method Details

Black() public static method

Gets an RGBA value of black at the given opacity.
public static Black ( double opacity ) : string
opacity double The opacity percentage (0..1).
return string

Green() public static method

Gets an RGBA value of green at the given opacity.
public static Green ( double opacity ) : string
opacity double The opacity percentage (0..1).
return string

HotPink() public static method

Gets an RGBA value of hot-pink (magenta) at the given opacity.
public static HotPink ( double opacity ) : string
opacity double The opacity percentage (0..1).
return string

Orange() public static method

Gets an RGBA value of orange at the given opacity.
public static Orange ( double opacity ) : string
opacity double The opacity percentage (0..1).
return string

Red() public static method

Gets an RGBA value of red at the given opacity.
public static Red ( double opacity ) : string
opacity double The opacity percentage (0..1).
return string

White() public static method

Gets an RGBA value of white at the given opacity.
public static White ( double opacity ) : string
opacity double The opacity percentage (0..1).
return string