#!/usr/bin/python3 # Gets a color gradient based on input color and number # Depends on python3-colour import colour,sys if len(sys.argv) != 4: print("arg error") sys.exit(1) start = sys.argv[1] end = sys.argv[2] num = int(sys.argv[3]) grad = colour.color_scale(colour.hex2hsl(start),colour.hex2hsl(end),num) grad_hex = [] for hsl in grad: grad_hex.append(colour.hsl2hex(hsl)) for color in grad_hex: sys.stdout.write(color + "\n")