DEV Community

Discussion on: Vanilla JavaScript random colours

Collapse
 
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:
codepen.io/Hellnar/pen/JjKMzzm

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

Collapse
 
dailydevtips1 profile image
Chris Bongers

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