我想能够按顺序对一些信函(基地)进行总结。 我可以这样说,但我不能说肤色是什么。
我用内部风格做一些手套,但这似乎行不通。
case 1: /*500-550(Raw Score)*/
$truecol=<div style="text-color: hsl($col,25%, 100%);">/*input*/</div>
break;
case 2: //550-600
$truecol=<div style="text-color: hsl($col,35%, 100%);">/*input*/</div>
break;
case 3: //600-650
$truecol=<div style="text-color: hsl($col,45%, 50%);">/*input*/</div>
break;
case 4: //650-700
$truecol=<div style="text-color: hsl($col,50%, 100%);">/*input*/</div>
break;
case 5: //700-750
$truecol=<div style="text-color: hsl($col,55%, 100%);">/*input*/</div>
break;
case 6: //750-800
$truecol=<div style="text-color: hsl($col,60%, 100%);">/*input*/</div>
break;
case 6: //800-850
$truecol=<div style="text-color: hsl($col,70%, 100%);">/*input*/</div>
break;
case 7: //850-900
$truecol=<div style="text-color: hsl($col,80%, 100%);">/*input*/</div>
break;
case 8: //900-950
$truecol=<div style="text-color: hsl($col,90%, 100%);">/*input*/</div>
break;
case 9: //950-1000
$truecol=<div style="text-color: hsl($col,100%, 100%);">/*input*/</div>
break;
Do I have to convert rgb to hsl saturation, then back to hexadecimal? It is important that the colors go in a gradient. This is why I use HSL initially.