コード例 #1
0
ファイル: ColorMath.cs プロジェクト: joellanciaux/ThemePark
 /// <summary>
 /// Returns the right triad of the color.
 /// </summary>
 public static Color GetRightTriad(this Color color)
 {
     return color.ChangeHue(-120);
 }
コード例 #2
0
ファイル: ColorMath.cs プロジェクト: joellanciaux/ThemePark
 public static Color GetRightSplitComplement(this Color color)
 {
     return color.ChangeHue(-150);
 }
コード例 #3
0
ファイル: ColorMath.cs プロジェクト: joellanciaux/ThemePark
 public static Color GetLeftTriad(this Color color)
 {
     return color.ChangeHue(120);
 }
コード例 #4
0
ファイル: ColorMath.cs プロジェクト: joellanciaux/ThemePark
 /// <summary>
 /// Retrieves the right analogous color.
 /// </summary>
 public static Color GetRightAnalogous(this Color color)
 {
     return color.ChangeHue(30);
 }
コード例 #5
0
ファイル: ColorMath.cs プロジェクト: joellanciaux/ThemePark
 /// <summary>
 /// Retrieves the complement of the inputted color.
 /// (The complement is the exact opposite of a color)
 /// </summary>
 public static Color GetComplement(this Color color)
 {
     return color.ChangeHue(180);
 }