Farve interval
Hejsa Eksperter,Er følgende muligt:
Jeg skal beregne et farveinterval mellem 2 farver f.eks sort til hvid:
Det ser således ud:
var textcolor= new Array()
textcolor[0] ="000000"
textcolor[1] ="0A0A0A"
textcolor[2] ="141414"
textcolor[3] ="1F1F1F"
textcolor[4] ="292929"
textcolor[5] ="333333"
textcolor[6] ="3D3D3D"
textcolor[7] ="474747"
textcolor[8] ="525252"
textcolor[9] ="5C5C5C"
textcolor[10] ="666666"
textcolor[11] ="707070"
textcolor[12] ="7A7A7A"
textcolor[13] ="858585"
textcolor[14] ="8F8F8F"
textcolor[15] ="999999"
textcolor[16] ="A3A3A3"
textcolor[17] ="ADADAD"
textcolor[18] ="B8B8B8"
textcolor[19] ="C2C2C2"
textcolor[20] ="CCCCCC"
textcolor[21] ="D6D6D6"
textcolor[22] ="E0E0E0"
textcolor[23] ="EBEBEB"
textcolor[24] ="F5F5F5"
textcolor[25] ="FFFFFF"
Kan det gøres automatisk?
