DEV Community


Discussion on: Vanilla JavaScript random colours

hellnar profile image
Stas Klymenko

Hey, Chris!
I've actually made a few things with random colors both with hex and RGB. I think the RGB approach is a bit easier. Especially for newbies.
Here is a simple example:

But anyway thanks for sharing your option. Also very nice and clean.

dailydevtips1 profile image
Chris Bongers Author

True RGB(a) might be easier to understand for most people because it's easier to calculate with, nice one Stan!