UNPKG

@silv21/complimentary_color_generator

Version:
14 lines (8 loc) 376 B
# Complimentary color generator A function that returns the complimentary color from a color passed in as an argument. Only works with hsl (or hsla) colors. Usage: ```javascript import complimentaryColor from "https://unpkg.com/@silv21/complimentary_color_generator@1.0.1/index.js"; complimentaryColor("hsl(56, 10%, 20%)"); // returns "hsl(236,10%,20%)" ```