Colours are onerous, particularly for those who don’t have an eye fixed for design.
Most of us tech professionals don’t. The upside is that Python can do a lot of the heavy lifting for you. It may well generate a whole monochromatic colour palette that’ll look beautiful on any stacked chart.
The draw back is that getting there requires a good bit of coding. It’s a must to write customized features to transform a colour from HEX to HSL and vice versa, and work out if the beginning colour is simply too vibrant, in addition to how a lot lighter every subsequent colour must be.
Including insult to harm, I haven’t discovered a single totally working Python library able to engaging in this job.
That’s the place this text chimes in.
When you’re a subscriber to my Substack, you may skip the studying and download the notebook as an alternative.
Let’s rapidly cowl three colour codecs you should know:
- HEX — A six-digit code usually utilized in net improvement and graphic design. The colour code begins with a
#
, adopted by six hexadecimal digits. Pairs…