Skip to content

More colors Using random hex code generator #15

@deepakydv9315

Description

@deepakydv9315

We can use newColor() function to generate sooo many colors

const arrayOfColorFunctions = ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f']

let randomColor = '#';

function newColor(){

       for (let x = 0; x < 6; x++){

                 let index =  Math.floor(Math.random() * 16)
                  let value = color[index]

                  randomColor += value
                }
       console.log(randomColor)

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions