6.6. Color

[<<<] [>>>]

Color = gd::Color(Image,red,green,blue)

Allocate a new color in the image. The PNG images handled by the module may contain up to 256 colors. The image is colored using a color table. This color table tells for at most 256 color indices the actual red, green and blue components. To use colors the color table should be set up first. Calling this function the program can allocate colors specifying the components.

The first color specified will be the background color.


[<<<] [>>>]