summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-13 15:06:17 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-13 17:37:33 +0900
commit8665a3d574f51f587a2d6e5227e6745baf218be4 (patch)
tree3a3d413eab5dfaf6c20c8ca39f7309b6c2dccc8b
parenta9b82a7928f63286eaa89ac0965cf374d7da35c3 (diff)
Doc: Add filter examples from the doc
The filter code is a copy and paste from the doc. Maybe the code should be in an include file, so we're sure the preview and the documentation code are the same?
-rw-r--r--doc/previews/Makefile.am2
-rw-r--r--doc/previews/filter_blend.sh5
-rw-r--r--doc/previews/filter_blur.sh8
-rw-r--r--doc/previews/filter_bump.sh8
-rw-r--r--doc/previews/filter_curve.sh9
-rw-r--r--doc/previews/filter_example_1.sh10
-rw-r--r--doc/previews/filter_grow.sh9
-rw-r--r--doc/previews/filter_mask.sh10
-rw-r--r--doc/previews/filter_transform.sh9
9 files changed, 69 insertions, 1 deletions
diff --git a/doc/previews/Makefile.am b/doc/previews/Makefile.am
index afc3e94566..e838f1f590 100644
--- a/doc/previews/Makefile.am
+++ b/doc/previews/Makefile.am
@@ -27,7 +27,7 @@ noinst_PROGRAMS = preview_text_filter
27DATADIR = ${top_srcdir}/doc/previews/img 27DATADIR = ${top_srcdir}/doc/previews/img
28HTMLDIR = ${top_srcdir}/doc/html 28HTMLDIR = ${top_srcdir}/doc/html
29 29
30PREVIEWS = 30PREVIEWS = blend blur bump curve grow mask transform
31 31
32previews-data: 32previews-data:
33 $(MKDIR_P) $(DATADIR) 33 $(MKDIR_P) $(DATADIR)
diff --git a/doc/previews/filter_blend.sh b/doc/previews/filter_blend.sh
new file mode 100644
index 0000000000..eee04461be
--- /dev/null
+++ b/doc/previews/filter_blend.sh
@@ -0,0 +1,5 @@
1TEXT="Blend"
2FONT="Sans:style=bold"
3SIZE=32
4FILTER="blend (color = #3399FF);"
5
diff --git a/doc/previews/filter_blur.sh b/doc/previews/filter_blur.sh
new file mode 100644
index 0000000000..a844419e39
--- /dev/null
+++ b/doc/previews/filter_blur.sh
@@ -0,0 +1,8 @@
1TEXT="Blur"
2FONT="Sans:style=bold"
3SIZE=32
4FILTER="
5blur (10, color = black, oy = 5, ox = 5);
6blend ();
7"
8
diff --git a/doc/previews/filter_bump.sh b/doc/previews/filter_bump.sh
new file mode 100644
index 0000000000..7fa8787e74
--- /dev/null
+++ b/doc/previews/filter_bump.sh
@@ -0,0 +1,8 @@
1TEXT="Bump"
2FONT="Sans:style=bold"
3SIZE=64
4FILTER="
5buffer : a (alpha);
6blur (5, dst = a);
7bump (map = a, compensate = yes, color = cyan, specular = 10.0);
8"
diff --git a/doc/previews/filter_curve.sh b/doc/previews/filter_curve.sh
new file mode 100644
index 0000000000..96e3f11049
--- /dev/null
+++ b/doc/previews/filter_curve.sh
@@ -0,0 +1,9 @@
1TEXT="Curve"
2FONT="Sans:style=bold"
3SIZE=64
4FILTER="
5buffer : a (alpha);
6blur (4, dst = a);
7curve (0:0 - 20:0 - 60:255 - 160:255 - 200:0 - 255:0, src = a, dst = a);
8blend(src = a, color = black);
9"
diff --git a/doc/previews/filter_example_1.sh b/doc/previews/filter_example_1.sh
new file mode 100644
index 0000000000..0098a6b2a8
--- /dev/null
+++ b/doc/previews/filter_example_1.sh
@@ -0,0 +1,10 @@
1TEXT="Evas Filters"
2FONT="Sans"
3SIZE=50
4FILTER="
5buffer : fat (alpha);
6grow (8, dst = fat);
7blur (12, src = fat, color = darkblue);
8blur (4, color = cyan);
9blend ();
10"
diff --git a/doc/previews/filter_grow.sh b/doc/previews/filter_grow.sh
new file mode 100644
index 0000000000..b675ab13ea
--- /dev/null
+++ b/doc/previews/filter_grow.sh
@@ -0,0 +1,9 @@
1TEXT="Grow - Contour"
2FONT="Sans:style=bold"
3SIZE=32
4FILTER="
5buffer : fat (alpha);
6grow (4, dst = fat);
7blend (src = fat, color = black);
8blend (color = white);
9"
diff --git a/doc/previews/filter_mask.sh b/doc/previews/filter_mask.sh
new file mode 100644
index 0000000000..ab22e5539c
--- /dev/null
+++ b/doc/previews/filter_mask.sh
@@ -0,0 +1,10 @@
1TEXT="Mask"
2FONT="Sans:style=bold"
3SIZE=64
4FILTER="
5buffer: a (alpha);
6blur(5, dst = a);
7curve(points = 0:255 - 128:255 - 255:0, src = a, dst = a);
8blend(color = black);
9mask(mask = a, color = cyan);
10"
diff --git a/doc/previews/filter_transform.sh b/doc/previews/filter_transform.sh
new file mode 100644
index 0000000000..6acd8459c5
--- /dev/null
+++ b/doc/previews/filter_transform.sh
@@ -0,0 +1,9 @@
1TEXT="Transform - Mirror effect"
2FONT="Sans"
3SIZE=50
4FILTER="
5buffer : t (alpha);
6transform (oy = 20, dst = t);
7blend (src = t, color = silver);
8blend (color = white);
9"