In order to make a more interesting image you'll use the drawing functions to make lines and shapes. For all functions, the top left is 0,0.
int imageSetPixel ( resource image, int x, int y, int color)
Draws a pixel at x, y in image image of color color.
int imageLine ( resource image, int x1, int y1, int x2, int y2, int color)
Draws a line from x1, y1 to x2, y2 in image im of color color.
int imageRectangle ( resource image, int x1, int y1, int x2, int y2, int col)
int imageFilledRectangle ( resource image, int x1, int y1, int x2, int y2, int color)
Creates a rectangle of color col in image image starting at upper left coordinate x1, y1 and ending at bottom right coordinate x2, y2.
int imagePolygon ( resource image, array points, int num_points, int color)
int imageFilledPolygon ( resource image, array points, int num_points, int color)
Creates a polygon in image image. points is a PHP array containing the polygon's vertices, ie. points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1, etc. num_points is the total number of points (vertices).
int imageEllipse ( resource image, int cx, int cy, int w, int h, int color)
int imageFilledEllipse ( resource image, int cx, int cy, int w, int h, int color)
Draws an ellipse centered at cx, cy in the image represented by image. W and h specifies the ellipse's width and height respectively. The color of the ellipse is specified by color.
int imageArc ( resource image, int cx, int cy, int w, int h, int s, int e, int color)
int imageFilledArc ( resource image, int cx, int cy, int w, int h, int s, int e, int color, int style)
Draws a partial ellipse centered at cx, cy in the image represented by image. W and h specifies the ellipse's width and height respectively while the start and end points are specified in degrees indicated by the s and e arguments. 0° is located at the three-o'clock position, and the arc is drawn counter-clockwise. style is a bitwise OR of the following possibilities: IMG_ARC_CHORD just connects the starting and ending angles with a straight line, while IMG_ARC_PIE produces a rounded edge. IMG_ARC_NOFILL indicates that the arc or chord should be outlined, not filled. IMG_ARC_EDGED, used together with IMG_ARC_NOFILL, indicates that the beginning and ending angles should be connected to the center - this is a good way to outline (rather than fill) a 'pie slice'.
int imageFill ( resource image, int x, int y, int color)
Performs a flood fill starting at coordinate x, y with color color in the image image.
int imageFillToBorder ( resource image, int x, int y, int border, int color)
Performs a flood fill of color color to the border color defined by border starting at coordinate x, y with color color.