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 @@ -175,6 +175,11 @@ def getAllFgBgWithDiff(delta):
175175getContrastParser = subparsers .add_parser ('contrast' , help = 'Print out a color test and get the contrast values' )
176176getContrastParser .add_argument ('COLOR1' , type = int , help = 'Must be between 0 and 256' )
177177getContrastParser .add_argument ('COLOR2' , type = int , help = 'Must be between 0 and 256' )
178+
179+ printContrastParser = subparsers .add_parser ('filterContrast' , help = 'Print out all the combos that meet a given delta.' )
180+ printContrastParser .add_argument ('DELTA' , type = int , help = 'Pick a color delta' )
181+
182+
178183args = parser .parse_args ()
179184
180185if args .command == 'dullFg' :
@@ -200,5 +205,7 @@ def getAllFgBgWithDiff(delta):
200205 print (_getRGBDictFromANSICode (args .COLOR2 ))
201206 print (f'Difference between two colors is: { getContrast (args .COLOR1 , args .COLOR2 )} ' )
202207 testForegroundOnBackground (args .COLOR1 , args .COLOR2 )
208+ elif args .command == 'filterContrast' :
209+ getAllFgBgWithDiff (args .DELTA )
203210else :
204211 parser .print_help ()
You can’t perform that action at this time.
0 commit comments