@@ -35,23 +35,61 @@ public static System.Windows.Media.SolidColorBrush ByChangingHue( this System.Wi
3535 {
3636 return new System . Windows . Media . SolidColorBrush ( self . Color . ByChangingHue ( h ) ) ;
3737 }
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+ }
3846
3947 public static System . Windows . Media . SolidColorBrush ByChangingSaturation ( this System . Windows . Media . SolidColorBrush self , double s )
4048 {
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 ) ) ;
4260 }
4361
4462 public static System . Windows . Media . SolidColorBrush ByChangingLightness ( this System . Windows . Media . SolidColorBrush self , double l )
4563 {
4664 return new System . Windows . Media . SolidColorBrush ( self . Color . ByChangingLightness ( l ) ) ;
4765 }
4866
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 )
5078 {
5179 System . Windows . Media . SolidColorBrush copy = self . Clone ( ) ;
52- copy . Opacity = l ;
80+ copy . Opacity = o ;
5381
5482 return copy ;
5583 }
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+ }
5694 }
5795}
0 commit comments