RSSAmplifier

James L Milner's Blog · Jul 23, 2022

Converting RGB, Hex and HSL Colors with JavaScript & TypeScript

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

post for myself for the future - a list of methods for converting between different color models. I was struggling to find working, modern JavaScript (TypeScript) implemenations for converting between Hex, RGB and HSL colors so I decided to put this together. Below is a combination of openly available implementations (StackOverflow, GitHub), modernised and converted to TypeScript: HSL to Hex #…

Read on jameslmilner.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.