From 9f1ae254db87e15797ea658d9e1f3cb6d9b11671 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 13 Feb 2014 15:28:46 +0900 Subject: [PATCH] Evas filters: Add image for the Syntax example And change it a bit so the glow is nicer :) --- doc/previews/Makefile.am | 3 ++- src/lib/evas/filters/evas_filter_parser.c | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/previews/Makefile.am b/doc/previews/Makefile.am index e838f1f590..fbfdd297dc 100644 --- a/doc/previews/Makefile.am +++ b/doc/previews/Makefile.am @@ -27,7 +27,8 @@ noinst_PROGRAMS = preview_text_filter DATADIR = ${top_srcdir}/doc/previews/img HTMLDIR = ${top_srcdir}/doc/html -PREVIEWS = blend blur bump curve grow mask transform +PREVIEWS = blend blur bump curve grow mask transform \ + example_1 previews-data: $(MKDIR_P) $(DATADIR) diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c index 2724fe183e..0a5ac7c109 100644 --- a/src/lib/evas/filters/evas_filter_parser.c +++ b/src/lib/evas/filters/evas_filter_parser.c @@ -69,8 +69,8 @@ @code buffer : fat (alpha); - grow (5, dst = fat); - blur (8, src = fat, color = darkblue); + grow (8, dst = fat); + blur (12, src = fat, color = darkblue); blur (4, color = cyan); blend (); @endcode @@ -78,6 +78,10 @@ This example will display a cyan and dark blue glow surrounding the main text (its color depends on the object's theme). +
+ @image html filter_example_1.png +
+ The syntax is pretty simple and follows a small set of rules: