Mega Code Archive
Categories
/
Php
/
Graphics
Changing colors with a loop
0; $i -= 4, $j -= 3) { if ($color = = $white) { $color = $gold; } else { $color = $white; } imagefilledrectangle($image, 400 - $i, 300 - $j, $i, $j, $color); } imagepng($image); imagedestroy($image); ?>