Skip to content

antontemchenko/randomize-color-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

randomize-color-js

Randomize color with JS

Demo

Watch demo

code

function go(){
	return Math.round(Math.random() * 255);
}

function getColor(){
	var r = go();
	var g = go();
	var b = go();
	return "rgb(" + r + "," + g + "," + b + ")"
}
//example of return: "rgb(175, 255, 250)"

About

Randomize color with JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published