Top | ![]() |
![]() |
![]() |
![]() |
GdkPixbuf * meta_gradient_create_simple (int width
,int height
,const GdkRGBA *from
,const GdkRGBA *to
,MetaGradientType style
);
GdkPixbuf * meta_gradient_create_multi (int width
,int height
,const GdkRGBA *colors
,int n_colors
,MetaGradientType style
);
GdkPixbuf * meta_gradient_create_interwoven (int width
,int height
,const GdkRGBA colors1[2]
,int thickness1
,const GdkRGBA colors2[2]
,int thickness2
);
Interwoven essentially means we have two vertical gradients, cut into horizontal strips of the given thickness, and then the strips are alternated. I'm not sure what it's good for, just copied since WindowMaker had it.
void meta_gradient_add_alpha (GdkPixbuf *pixbuf
,const guchar *alphas
,int n_alphas
,MetaGradientType type
);
Vertical gradient |
||
Horizontal gradient |
||
Diagonal gradient |
||
Marks the end of the MetaGradientType enumeration |