[LIBART] art_rgb_svp_alpha?



Hi all.

I have a problem with the art_rgb_alpha func:

I build a svp from this shape using art_svp_from_vpath.

vec[0].code=ART_MOVETO; vec[0].x=100.0; vec[0].y=100.0;
vec[1].code=ART_LINETO; vec[1].x=150.0; vec[1].y=50.0;
vec[2].code=ART_LINETO; vec[2].x=200.0; vec[2].y=100.0;
vec[3].code=ART_LINETO; vec[3].x=150.0; vec[3].y=150.0;
vec[4].code=ART_LINETO; vec[4].x=100.0; vec[4].y=100.0;
vec[5].code=ART_END;    vec[5].x=0.0;   vec[5].y=0.0;

Then I want to render it with the art_rgb_svp_alpha func.
If the color I give has transparency only the outline
is rendered, otherwise the shape is rendered with the solid
color but the outline is not antialiased with transparency
interpolation.
But it works well with the randstar() of the testart.c prog.
I really don't understand and feel stupid.

If someone could enlighten me, I'd appreciate it very much.

Thanks,
Eric.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]