<style>
tr {
height: 5px;
font-size: 3pt;
}
</style>
<body bgcolor="#CCCCCC">
<table cellpadding="0" border="0" cellspacing="0" width="150">
<?
function modify($zahl, $shift){
return max(min($zahl+$shift, 255), 0);
}
$steps = 10;
// Ab Rot auf Pink
for ($i = 0;$i<=$steps;$i++){
// Mittel-farbwerte
$color = array(255,0,round((255/$steps)*$i));
echo '<tr>';
for ($j=$steps*-1;$j<=$steps;$j++){
$subcolor = array(modify($color[0],round(255/$steps*$j)), modify($color[1],round(255/$steps*$j)), modify($color[2],round(255/$steps*$j)));
echo '<td bgcolor="#'.str_pad(dechex($subcolor[0]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[1]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[2]),2,'0',STR_PAD_LEFT)."\">".(($j == 0)?' ':' ')."</td>\n";
}
echo '</tr>';
}
// Pink bis Blau
for ($i = 0;$i<=$steps;$i++){
// Mittel-farbwerte
$color = array(round((255/$steps)*($steps-$i)),0,255);
echo '<tr>';
for ($j=$steps*-1;$j<=$steps;$j++){
$subcolor = array(modify($color[0],round(255/$steps*$j)), modify($color[1],round(255/$steps*$j)), modify($color[2],round(255/$steps*$j)));
echo '<td bgcolor="#'.str_pad(dechex($subcolor[0]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[1]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[2]),2,'0',STR_PAD_LEFT)."\">".(($j == 0)?' ':' ')."</td>\n";
}
echo '</tr>';
}
// Blau bis Cyan
for ($i = 0;$i<=$steps;$i++){
// Mittel-farbwerte
$color = array(0,round((255/$steps)*$i),255);
echo '<tr>';
for ($j=$steps*-1;$j<=$steps;$j++){
$subcolor = array(modify($color[0],round(255/$steps*$j)), modify($color[1],round(255/$steps*$j)), modify($color[2],round(255/$steps*$j)));
echo '<td bgcolor="#'.str_pad(dechex($subcolor[0]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[1]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[2]),2,'0',STR_PAD_LEFT)."\">".(($j == 0)?' ':' ')."</td>\n";
}
echo '</tr>';
}
// Cyan bis Grün
for ($i = 0;$i<=$steps;$i++){
// Mittel-farbwerte
$color = array(0,255,round((255/$steps)*($steps-$i)));
echo '<tr>';
for ($j=$steps*-1;$j<=$steps;$j++){
$subcolor = array(modify($color[0],round(255/$steps*$j)), modify($color[1],round(255/$steps*$j)), modify($color[2],round(255/$steps*$j)));
echo '<td bgcolor="#'.str_pad(dechex($subcolor[0]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[1]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[2]),2,'0',STR_PAD_LEFT)."\">".(($j == 0)?' ':' ')."</td>\n";
}
echo '</tr>';
}
// Grün bis Gelb
for ($i = 0;$i<=$steps;$i++){
// Mittel-farbwerte
$color = array(round((255/$steps)*$i),255,0);
echo '<tr>';
for ($j=$steps*-1;$j<=$steps;$j++){
$subcolor = array(modify($color[0],round(255/$steps*$j)), modify($color[1],round(255/$steps*$j)), modify($color[2],round(255/$steps*$j)));
echo '<td bgcolor="#'.str_pad(dechex($subcolor[0]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[1]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[2]),2,'0',STR_PAD_LEFT)."\">".(($j == 0)?' ':' ')."</td>\n";
}
echo '</tr>';
}
// Gelb bis Rot
for ($i = 0;$i<=$steps;$i++){
// Mittel-farbwerte
$color = array(255,round((255/$steps)*($steps-$i)),0);
echo '<tr>';
for ($j=$steps*-1;$j<=$steps;$j++){
$subcolor = array(modify($color[0],round(255/$steps*$j)), modify($color[1],round(255/$steps*$j)), modify($color[2],round(255/$steps*$j)));
echo '<td bgcolor="#'.str_pad(dechex($subcolor[0]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[1]),2,'0',STR_PAD_LEFT).str_pad(dechex($subcolor[2]),2,'0',STR_PAD_LEFT)."\">".(($j == 0)?' ':' ')."</td>\n";
}
echo '</tr>';
}
?>
</table>
</body>