Crystal: Colorize: Add support for HSL colors

Created on 1 Jun 2019  路  4Comments  路  Source: crystal-lang/crystal

How about supporting [HSL colors]?

feature discussion stdlib

Most helpful comment

what do you mean "support"? can't the developer just use the values (hsl(120, 100%, 0%)) in a string to create their color

if you mean like a hsl color checker (make sure it's valid), i'm sure you can find that online and port it to crystal code

All 4 comments

How about not?

what do you mean "support"? can't the developer just use the values (hsl(120, 100%, 0%)) in a string to create their color

if you mean like a hsl color checker (make sure it's valid), i'm sure you can find that online and port it to crystal code

I think they're talking about adding Colorize::ColorHSL akin to Colorize::ColorRGB.

Yes, that is what everyone assumed. It just definitely has no place in the standard library.

Was this page helpful?
0 / 5 - 0 ratings