File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,11 @@ def getAllFgBgWithDiff(delta):
165165getContrastParser = subparsers .add_parser ('contrast' , help = 'Print out a color test and get the contrast values' )
166166getContrastParser .add_argument ('COLOR1' , type = int , help = 'Must be between 0 and 256' )
167167getContrastParser .add_argument ('COLOR2' , type = int , help = 'Must be between 0 and 256' )
168+
169+ printContrastParser = subparsers .add_parser ('filterContrast' , help = 'Print out all the combos that meet a given delta.' )
170+ printContrastParser .add_argument ('DELTA' , type = int , help = 'Pick a color delta' )
171+
172+
168173args = parser .parse_args ()
169174
170175if args .command == 'dullFg' :
@@ -188,5 +193,7 @@ def getAllFgBgWithDiff(delta):
188193elif args .command == 'contrast' :
189194 print (f'Difference between two colors is: { getContrast (args .COLOR1 , args .COLOR2 )} ' )
190195 testForegroundOnBackground (args .COLOR1 , args .COLOR2 )
196+ elif args .command == 'filterContrast' :
197+ getAllFgBgWithDiff (args .DELTA )
191198else :
192199 parser .print_help ()
You can’t perform that action at this time.
0 commit comments