Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for background tiles #1

Open
beauhaus opened this issue May 22, 2019 · 0 comments
Open

for background tiles #1

beauhaus opened this issue May 22, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@beauhaus
Copy link
Owner

var colors= ["#22f","#883", "#28f", "#2fb", "#80d", "#dab", "#59c", "#74c", "#a4c", "#76a"];

var rando0to9 =()=> (Math.floor(Math.random() * 9)+1);

const genArr= new Array(100).fill("").map((val, idx)=>colors[rando0to9()]);
console.log("genArr: ", genArr)

range of 10 hex colors delivered 100x randomly

@beauhaus beauhaus added the enhancement New feature or request label May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant