[cairo-commit] [cairo-www] 3 commits - src/tutorial src/tutorial.mdwn

Nis Martensen nmartensen at freedesktop.org
Sun Feb 3 08:39:21 PST 2008


 src/tutorial.mdwn            |    4 ++--
 src/tutorial/destination.png |binary
 src/tutorial/diagram.c       |    8 ++++----
 src/tutorial/fill.png        |binary
 src/tutorial/mask.c          |    4 ++--
 src/tutorial/mask.png        |binary
 src/tutorial/paint.png       |binary
 src/tutorial/showtext.png    |binary
 src/tutorial/source.png      |binary
 src/tutorial/stroke.png      |binary
 src/tutorial/the-mask.png    |binary
 11 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 57693f6fa7634625ad10016f109e1dde3d18032e
Author: Nis Martensen <nis.martensen at web.de>
Date:   Sun Feb 3 17:30:35 2008 +0100

    [tutorial] Update diagrams
    
    mask.png has an updated gradient. All diagram images now have a thinner
    border around the destination layer on the left. This change comes from
    a newer cairo version, without any image code change.

diff --git a/src/tutorial/destination.png b/src/tutorial/destination.png
index 16c7779..bed381b 100644
Binary files a/src/tutorial/destination.png and b/src/tutorial/destination.png differ
diff --git a/src/tutorial/fill.png b/src/tutorial/fill.png
index bc3db51..45751ac 100644
Binary files a/src/tutorial/fill.png and b/src/tutorial/fill.png differ
diff --git a/src/tutorial/mask.png b/src/tutorial/mask.png
index cc4c52c..624af3b 100644
Binary files a/src/tutorial/mask.png and b/src/tutorial/mask.png differ
diff --git a/src/tutorial/paint.png b/src/tutorial/paint.png
index 1106657..1d19981 100644
Binary files a/src/tutorial/paint.png and b/src/tutorial/paint.png differ
diff --git a/src/tutorial/showtext.png b/src/tutorial/showtext.png
index ae28a27..26c36d1 100644
Binary files a/src/tutorial/showtext.png and b/src/tutorial/showtext.png differ
diff --git a/src/tutorial/source.png b/src/tutorial/source.png
index 10f5893..c064ebe 100644
Binary files a/src/tutorial/source.png and b/src/tutorial/source.png differ
diff --git a/src/tutorial/stroke.png b/src/tutorial/stroke.png
index 9e9af09..424fddc 100644
Binary files a/src/tutorial/stroke.png and b/src/tutorial/stroke.png differ
diff --git a/src/tutorial/the-mask.png b/src/tutorial/the-mask.png
index 35075eb..a2c595c 100644
Binary files a/src/tutorial/the-mask.png and b/src/tutorial/the-mask.png differ
commit d49f701eadcd507054dbada086bed1a4f93e06b5
Author: Nis Martensen <nis.martensen at web.de>
Date:   Sun Feb 3 17:25:33 2008 +0100

    [tutorial] same change in mask.c

diff --git a/src/tutorial/mask.c b/src/tutorial/mask.c
index 2a9e152..30e3c7c 100644
--- a/src/tutorial/mask.c
+++ b/src/tutorial/mask.c
@@ -17,9 +17,9 @@ main (int argc, char *argv[])
 	cairo_pattern_add_color_stop_rgb (linpat, 0, 0, 0.3, 0.8);
 	cairo_pattern_add_color_stop_rgb (linpat, 1, 0, 0.8, 0.3);
 
-	radpat = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.6);
+	radpat = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.75);
 	cairo_pattern_add_color_stop_rgba (radpat, 0, 0, 0, 0, 1);
-	cairo_pattern_add_color_stop_rgba (radpat, 1, 0, 0, 0, 0);
+	cairo_pattern_add_color_stop_rgba (radpat, 0.5, 0, 0, 0, 0);
 
 	cairo_set_source (cr, linpat);
 	cairo_pattern_destroy (linpat);
commit d322add3c195845c55bbd0e65ab560cd98e57c4e
Author: Nis Martensen <nis.martensen at web.de>
Date:   Sun Feb 3 17:21:37 2008 +0100

    [tutorial] Adapt gradient code to match Michael's current version

diff --git a/src/tutorial.mdwn b/src/tutorial.mdwn
index 75c097e..d7438f2 100644
--- a/src/tutorial.mdwn
+++ b/src/tutorial.mdwn
@@ -246,9 +246,9 @@ pattern or surface is transparent, nothing is transferred.
 	cairo_pattern_add_color_stop_rgb (linpat, 0, 0, 0.3, 0.8);
 	cairo_pattern_add_color_stop_rgb (linpat, 1, 0, 0.8, 0.3);
 
-	radpat = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.6);
+	radpat = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.75);
 	cairo_pattern_add_color_stop_rgba (radpat, 0, 0, 0, 0, 1);
-	cairo_pattern_add_color_stop_rgba (radpat, 1, 0, 0, 0, 0);
+	cairo_pattern_add_color_stop_rgba (radpat, 0.5, 0, 0, 0, 0);
 
 	cairo_set_source (cr, linpat);
 	cairo_mask (cr, radpat);
diff --git a/src/tutorial/diagram.c b/src/tutorial/diagram.c
index a9432e7..0617329 100644
--- a/src/tutorial/diagram.c
+++ b/src/tutorial/diagram.c
@@ -432,9 +432,9 @@ void mask_draw_mask (cairo_t *cr)
 {
 	cairo_pattern_t *radialinv;
 
-	radialinv = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.6);
+	radialinv = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.75);
 	cairo_pattern_add_color_stop_rgba (radialinv, 0, 0, 0, 0, 0);
-	cairo_pattern_add_color_stop_rgba (radialinv, 1, 0, 0, 0, 1);
+	cairo_pattern_add_color_stop_rgba (radialinv, 0.5, 0, 0, 0, 1);
 
 	cairo_save (cr);
 	cairo_rectangle (cr, 0, 0, 1, 1);
@@ -450,9 +450,9 @@ void mask_draw_dest (cairo_t *cr)
 	cairo_pattern_add_color_stop_rgb (linpat, 0, 0, 0.3, 0.8);
 	cairo_pattern_add_color_stop_rgb (linpat, 1, 0, 0.8, 0.3);
 
-	radpat = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.6);
+	radpat = cairo_pattern_create_radial (0.5, 0.5, 0.25, 0.5, 0.5, 0.75);
 	cairo_pattern_add_color_stop_rgba (radpat, 0, 0, 0, 0, 1);
-	cairo_pattern_add_color_stop_rgba (radpat, 1, 0, 0, 0, 0);
+	cairo_pattern_add_color_stop_rgba (radpat, 0.5, 0, 0, 0, 0);
 
 	diagram_draw_dest (cr);
 	cairo_save (cr);


More information about the cairo-commit mailing list