init
This commit is contained in:
21
standalone/colors.php
Executable file
21
standalone/colors.php
Executable file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$iMin = 0;
|
||||
$iMax = 256;
|
||||
$iStep = 20;
|
||||
$iBoxWidth = 10;
|
||||
|
||||
echo '<html><head><title>Colors</title></head><body><table style="border:0;">';
|
||||
for($i=$iMin;$i<$iMax;$i+=$iStep)
|
||||
{
|
||||
for($j=$iMin;$j<$iMax;$j+=$iStep)
|
||||
{
|
||||
echo '<tr>';
|
||||
for($k=$iMin;$k<$iMax;$k+=$iStep)
|
||||
{
|
||||
echo '<td style="width:'.$iBoxWidth.'px;height:'.$iBoxWidth.'px;background:rgb('.$i.','.$j.','.$k.')"></td>';
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
echo '</table><body></html>';
|
||||
Reference in New Issue
Block a user