C# Class Artemis.Utilities.ColorHelpers

Show file Open project: SpoinkyNL/Artemis

Public Methods

Method Description
GetRandomRainbowColor ( ) : System.Drawing.Color

Comes up with a 'pure' psuedo-random color

GetRandomRainbowMediaColor ( ) : System.Windows.Media.System.Drawing.Color
RandomizeBrush ( System.Windows.Media.Brush brush ) : System.Windows.Media.Brush
ShiftColor ( System.Drawing.Color c, int shiftAmount ) : System.Drawing.Color
ToDrawingColor ( System mColor ) : System.Drawing.Color
ToMediaColor ( System.Drawing.Color dColor ) : System.Windows.Media.System.Drawing.Color

Private Methods

Method Description
BringIntInColorRange ( int i ) : int

Method Details

GetRandomRainbowColor() public static method

Comes up with a 'pure' psuedo-random color
public static GetRandomRainbowColor ( ) : System.Drawing.Color
return System.Drawing.Color

GetRandomRainbowMediaColor() public static method

public static GetRandomRainbowMediaColor ( ) : System.Windows.Media.System.Drawing.Color
return System.Windows.Media.System.Drawing.Color

RandomizeBrush() public static method

public static RandomizeBrush ( System.Windows.Media.Brush brush ) : System.Windows.Media.Brush
brush System.Windows.Media.Brush
return System.Windows.Media.Brush

ShiftColor() public static method

public static ShiftColor ( System.Drawing.Color c, int shiftAmount ) : System.Drawing.Color
c System.Drawing.Color
shiftAmount int
return System.Drawing.Color

ToDrawingColor() public static method

public static ToDrawingColor ( System mColor ) : System.Drawing.Color
mColor System
return System.Drawing.Color

ToMediaColor() public static method

public static ToMediaColor ( System.Drawing.Color dColor ) : System.Windows.Media.System.Drawing.Color
dColor System.Drawing.Color
return System.Windows.Media.System.Drawing.Color