I would like to get the color range of the specific color for generating tag cloud.
Say that user has entered some color with RGB/HHHHHH
values then I woul
function generate()
{
var r = document.querySelector("#R").value%256;
var g = document.querySelector("#G").value%256;
var b = document.querySelector("#B").value%256;
var str="";
for(var i=0;i<7;i++)
{
r+=33;
g+=33;
b+=33;
str+="";
}
document.querySelector("#op").innerHTML = str;
console.log(str);
}
.swatch{width:50px;height:25px;margin:1px}
R
G
B
Generated Color shades
Do you want something like this on jsbin? This is a demo that I have built using jQuery.
Let me know if you have any doubts.