[cairo-commit] cairo-5c/examples fob.5c,1.4,1.5
Keith Packard
commit at pdx.freedesktop.org
Thu Jul 7 01:09:23 PDT 2005
- Previous message: [cairo-commit] cairo ChangeLog,1.704,1.705
- Next message: [cairo-commit] cairo-5c ChangeLog, 1.24, 1.25 cairo-5c.h, 1.14,
1.15 cairo.c, 1.5, 1.6 gtk.c, 1.9, 1.10 init.c, 1.15,
1.16 pattern.c, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: keithp
Update of /cvs/cairo/cairo-5c/examples
In directory gabe:/tmp/cvs-serv7650/examples
Modified Files:
fob.5c
Log Message:
2005-07-07 Keith Packard <keithp at keithp.com>
* cairo-5c.h:
* cairo.c: (do_Cairo_status_to_string):
* examples/fob.5c:
* gtk.c: (create_gtk_global):
* init.c: (nickle_init):
* pattern.c: (do_Cairo_Pattern_add_color_stop_rgba),
(do_Cairo_Pattern_add_color_stop_rgb),
(do_Cairo_Pattern_set_matrix), (do_Cairo_Pattern_set_extend),
(do_Cairo_Pattern_set_filter):
Match current cairo API.
Use XInitThreads, as it's necessary for stable operation.
Requires at least one bug fix not yet in Xlib CVS to work
Index: fob.5c
===================================================================
RCS file: /cvs/cairo/cairo-5c/examples/fob.5c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- fob.5c 7 Jun 2005 05:09:35 -0000 1.4
+++ fob.5c 7 Jul 2005 08:09:21 -0000 1.5
@@ -50,8 +50,8 @@
arc (cr, 9, 9, 7, 0, 2*pi);
save (cr);
pattern_t pat = Pattern::create_radial (12, 12, 0, 9, 9, 7);
- Pattern::add_color_stop (pat, 0, 1, 1, 1, 1);
- Pattern::add_color_stop (pat, 1, 1, .8, .6, 1);
+ Pattern::add_color_stop_rgba (pat, 0, 1, 1, 1, 1);
+ Pattern::add_color_stop_rgba (pat, 1, 1, .8, .6, 1);
set_source (cr, pat);
fill_preserve (cr);
restore (cr);
@@ -95,9 +95,9 @@
save (cr);
translate (cr, x, y);
pattern_t pat = Pattern::create_radial (.5, .5, 0, 0, 0, 3);
- Pattern::add_color_stop (pat, 0, 1, 1, 1, .5);
- Pattern::add_color_stop (pat, .5, 0, 0, 0, 0);
- Pattern::add_color_stop (pat, 1, 0, 0, 0, 0);
+ Pattern::add_color_stop_rgba (pat, 0, 1, 1, 1, .5);
+ Pattern::add_color_stop_rgba (pat, .5, 0, 0, 0, 0);
+ Pattern::add_color_stop_rgba (pat, 1, 0, 0, 0, 0);
set_source (cr, pat);
arc (cr, 0, 0, 4, 0, 2*pi);
fill (cr);
@@ -127,16 +127,16 @@
if (true)
{
pattern_t pat = Pattern::create_linear (0, 0, 11, 11);
- Pattern::add_color_stop (pat, 0, .4, .4, .4, 1);
- Pattern::add_color_stop (pat, 1, 1, 1, 1, 1);
+ Pattern::add_color_stop_rgba (pat, 0, .4, .4, .4, 1);
+ Pattern::add_color_stop_rgba (pat, 1, 1, 1, 1, 1);
set_source (cr, pat);
}
else
{
pattern_t pat = Pattern::create_radial (8, 10, 0,
6.5, 6.5, 8);
- Pattern::add_color_stop (pat, 0, 1, 1, 1, 1);
- Pattern::add_color_stop (pat, 1, .3, .3, .3, 1);
+ Pattern::add_color_stop_rgba (pat, 0, 1, 1, 1, 1);
+ Pattern::add_color_stop_rgba (pat, 1, .3, .3, .3, 1);
set_source (cr, pat);
}
fill (cr);
- Previous message: [cairo-commit] cairo ChangeLog,1.704,1.705
- Next message: [cairo-commit] cairo-5c ChangeLog, 1.24, 1.25 cairo-5c.h, 1.14,
1.15 cairo.c, 1.5, 1.6 gtk.c, 1.9, 1.10 init.c, 1.15,
1.16 pattern.c, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list