php Color Handling

The GD library supports both 8-bit palette (256 color) images and true color images with alpha channel transparency. To create an 8-bit palette image, use the imagecreate() function. The image’s background is subsequently filled with the first color you allocate using imagecolorallocate(): A simple orange ellipse on a white background