Colorgradient

Hi,

I was looking through the SVG-Specs if it would fit my needs for an
open-source project.

What I'm missing is the ability to have a per vertex colouring as you
can do in OpenGL.

OpenGl e.g. lets you write:

glBegin(GL_TRIANGLES);
glColor3f(r1, g1, b1); glVertex2f(x1, y1);
glColor3f(r2, g2, b2); glVertex2f(x2, y2);
glColor3f(r3, g3, b3); glVertex2f(x3, y3);
glEnd();

and you get a filled triangle (when you've set the correct states, of
course) where every corner has its own colour and the colour inside of
the triangle is smoothly changing.

It would be great if such an ability would be added in future versions
of SVG.

CU,
Christian

Received on Wednesday, 7 June 2000 05:14:31 UTC