Skip to content

Instantly share code, notes, and snippets.

@alexrold
Forked from Klerith/hex-color.js
Created November 15, 2022 18:25
Show Gist options
  • Select an option

  • Save alexrold/fc364b0b4a657a8fdfb44267e6418d59 to your computer and use it in GitHub Desktop.

Select an option

Save alexrold/fc364b0b4a657a8fdfb44267e6418d59 to your computer and use it in GitHub Desktop.
Color HEX aleatorio
const color = "#xxxxxx".replace(/x/g, y=>(Math.random()*16|0).toString(16));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment