Hi ich mache im Moment so eine Farbtabelle:
Aber wie kann ich es machen das ich auch Garautöne draufbekom und Töne die hier noch ehlen?
Gruss Simon
Code:
<?php
$hex[0] = "00";
$hex[1] = "33";
$hex[2] = "66";
$hex[3] = "99";
$hex[4] = "CC";
$hex[5] = "FF";
$aus = "";
echo ("<table cellpadding='0' cellspacing='0' border='0'");
for ($n=0; $n<6; $n++){
echo ("<tr>");
for ($j=0; $j<6; $j++) {
echo ("<td>[img]../../../Bilder/buttons/Farben/trans.gif[/img]</td>");
for ($k= 0; $k<6; $k++) {
$aus = $hex[$n] . $hex[$j] . $hex[$k];
echo ("<td bgcolor='#$aus'>[img]img/pixel.gif[/img]</td>");
}
}
echo ("</tr>");
}
echo ("</table>");
echo "
<table><tr><td width='180'>gewählte Farbe: #$_REQUEST[color]</td>
<td width='40' height='3' bgcolor='#$_REQUEST[color]'></td></tr></table>";
?>
Gruss Simon

Kommentar