@@ -35,23 +35,61 @@ public static System.Windows.Media.SolidColorBrush ByChangingHue( this System.Wi
35
35
{
36
36
return new System . Windows . Media . SolidColorBrush ( self . Color . ByChangingHue ( h ) ) ;
37
37
}
38
+ public static System . Windows . Media . SolidColorBrush ByIncreasingHue ( this System . Windows . Media . SolidColorBrush self , double h )
39
+ {
40
+ return new System . Windows . Media . SolidColorBrush ( self . Color . ByIncreasingHue ( h ) ) ;
41
+ }
42
+ public static System . Windows . Media . SolidColorBrush ByDecreasingHue ( this System . Windows . Media . SolidColorBrush self , double h )
43
+ {
44
+ return new System . Windows . Media . SolidColorBrush ( self . Color . ByDecreasingHue ( h ) ) ;
45
+ }
38
46
39
47
public static System . Windows . Media . SolidColorBrush ByChangingSaturation ( this System . Windows . Media . SolidColorBrush self , double s )
40
48
{
41
- return new System . Windows . Media . SolidColorBrush ( self . Color . ByChangingHue ( s ) ) ;
49
+ return new System . Windows . Media . SolidColorBrush ( self . Color . ByChangingSaturation ( s ) ) ;
50
+ }
51
+
52
+ public static System . Windows . Media . SolidColorBrush ByIncreasingSaturation ( this System . Windows . Media . SolidColorBrush self , double s )
53
+ {
54
+ return new System . Windows . Media . SolidColorBrush ( self . Color . ByIncreasingSaturation ( s ) ) ;
55
+ }
56
+
57
+ public static System . Windows . Media . SolidColorBrush ByDecreasingSaturation ( this System . Windows . Media . SolidColorBrush self , double s )
58
+ {
59
+ return new System . Windows . Media . SolidColorBrush ( self . Color . ByDecreasingSaturation ( s ) ) ;
42
60
}
43
61
44
62
public static System . Windows . Media . SolidColorBrush ByChangingLightness ( this System . Windows . Media . SolidColorBrush self , double l )
45
63
{
46
64
return new System . Windows . Media . SolidColorBrush ( self . Color . ByChangingLightness ( l ) ) ;
47
65
}
48
66
49
- public static System . Windows . Media . SolidColorBrush ByChangingOpacity ( this System . Windows . Media . SolidColorBrush self , double l )
67
+ public static System . Windows . Media . SolidColorBrush ByIncreasingLightness ( this System . Windows . Media . SolidColorBrush self , double l )
68
+ {
69
+ return new System . Windows . Media . SolidColorBrush ( self . Color . ByIncreasingLightness ( l ) ) ;
70
+ }
71
+
72
+ public static System . Windows . Media . SolidColorBrush ByDecreasingLightness ( this System . Windows . Media . SolidColorBrush self , double l )
73
+ {
74
+ return new System . Windows . Media . SolidColorBrush ( self . Color . ByDecreasingLightness ( l ) ) ;
75
+ }
76
+
77
+ public static System . Windows . Media . SolidColorBrush ByChangingOpacity ( this System . Windows . Media . SolidColorBrush self , double o )
50
78
{
51
79
System . Windows . Media . SolidColorBrush copy = self . Clone ( ) ;
52
- copy . Opacity = l ;
80
+ copy . Opacity = o ;
53
81
54
82
return copy ;
55
83
}
84
+
85
+ public static System . Windows . Media . SolidColorBrush ByIncreasingOpacity ( this System . Windows . Media . SolidColorBrush self , double o )
86
+ {
87
+ return self . ByChangingOpacity ( self . Opacity + o ) ;
88
+ }
89
+
90
+ public static System . Windows . Media . SolidColorBrush ByDecreasingOpacity ( this System . Windows . Media . SolidColorBrush self , double o )
91
+ {
92
+ return self . ByChangingOpacity ( self . Opacity - o ) ;
93
+ }
56
94
}
57
95
}
0 commit comments