|
From: Ethan M. <merritt@u.washington.edu> - 2007-02-02 19:32:54
|
I have requested that the next major release of libgd include a gradient-fill routine. The proposed mechanism is gdImageShadedTriangle(gdImagePtr image, gdPoint *vertex, int *color); That is, a filled triangle with interpolation of three separate colors specified for the three vertices. Filled quadrangles are easily produced by splitting each one into 2 triangles. This would allow us to support gradient fill for the PNG/JPEG terminal. My primary thought is to allow a PM3D shading mode that provides smooth coloring. Are there other uses? The colorbar? Your thoughts and suggestions are welcome. -- Ethan A Merritt Courier Deliveries: 1959 NE Pacific Dept of Biochemistry M/S 357742 Health Sciences Building University of Washington - Seattle |