C# Class Knot3.Framework.Utilities.ColorHelper

Exibir arquivo Open project: knot3/knot3-code

Public Methods

Method Description
Luminance ( this color ) : int
Mix ( this a, Microsoft.Xna.Framework.Color b, float percent = 0.5f ) : Microsoft.Xna.Framework.Color
SortColorsByLuminance ( Microsoft.Xna.Framework.Color left, Microsoft.Xna.Framework.Color right ) : int

Method Details

Luminance() public static method

public static Luminance ( this color ) : int
color this
return int

Mix() public static method

public static Mix ( this a, Microsoft.Xna.Framework.Color b, float percent = 0.5f ) : Microsoft.Xna.Framework.Color
a this
b Microsoft.Xna.Framework.Color
percent float
return Microsoft.Xna.Framework.Color

SortColorsByLuminance() public static method

public static SortColorsByLuminance ( Microsoft.Xna.Framework.Color left, Microsoft.Xna.Framework.Color right ) : int
left Microsoft.Xna.Framework.Color
right Microsoft.Xna.Framework.Color
return int