[cairo-commit] [cairo-www] src/examples.mdwn src/monkey.png

Chris Wilson ickle at freedesktop.org
Sun Jan 23 08:18:08 PST 2011


 src/examples.mdwn |    9 +++++++++
 src/monkey.png    |binary
 2 files changed, 9 insertions(+)

New commits:
commit 594365b374f88ac6e5868c7da130765e2e35e055
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Jan 23 16:17:46 2011 +0000

    examples: Monkey mesh

diff --git a/src/examples.mdwn b/src/examples.mdwn
index 2166de3..401c2bf 100644
--- a/src/examples.mdwn
+++ b/src/examples.mdwn
@@ -9,6 +9,15 @@ Additions to this list are quite welcome.
 [samples](/samples/) showing how to draw useful things with small
 snippets of code.
 
+# Bezier gradients
+
+Bezier gradients, also known as type 6/7 gradients in PS/PDF parlance, are
+incredibly power tools. Using a patchwise 2D cubic Bezier surface allows
+them to construct any of the lesser gradients such as linear, conical and
+radial, and the flexibility to do so much more. One example, Adrian
+Johnson gives is the ability to create realistic shading of a complex
+object: [[!img "monkey.png" link="no"]]
+
 # Small demos
 
 There are a few small programs that may be useful for learning how to
diff --git a/src/monkey.png b/src/monkey.png
new file mode 100644
index 0000000..c65c438
Binary files /dev/null and b/src/monkey.png differ


More information about the cairo-commit mailing list