[gimp-help] Create long-shadow filter
- From: Julien Hardlin <jhardlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-help] Create long-shadow filter
- Date: Sat, 5 Jan 2019 17:19:17 +0000 (UTC)
commit ba92d60491691811a71ba28801953a9f073352bb
Author: Julien Hardelin <jhardlin orange fr>
Date: Sat Jan 5 18:18:42 2019 +0100
Create long-shadow filter
.../light-and-shadow/long-shadow-ex-angle.png | Bin 0 -> 5983 bytes
.../light-and-shadow/long-shadow-ex-default.png | Bin 0 -> 4331 bytes
.../light-and-shadow/long-shadow-ex-fading.png | Bin 0 -> 10279 bytes
.../light-and-shadow/long-shadow-ex-fixlength.png | Bin 0 -> 8234 bytes
.../light-and-shadow/long-shadow-ex-infinite.png | Bin 0 -> 3549 bytes
.../light-and-shadow/long-shadow-ex-length.png | Bin 0 -> 5263 bytes
.../light-and-shadow/long-shadow-ex-orig.png | Bin 0 -> 7789 bytes
.../light-and-shadow/long-shadow-ex-shadminus.png | Bin 0 -> 2160 bytes
.../light-and-shadow/long-shadow-ex-shadonly.png | Bin 0 -> 3977 bytes
.../light-and-shadow/long-shadow-dialog.png | Bin 0 -> 22798 bytes
src/filters/light-and-shadow.xml | 2 +-
src/filters/light-and-shadow/long-shadow.xml | 189 +++++++++++++++++++++
12 files changed, 190 insertions(+), 1 deletion(-)
---
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-angle.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-angle.png
new file mode 100644
index 000000000..857322759
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-angle.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-default.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-default.png
new file mode 100644
index 000000000..deddfd38a
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-default.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-fading.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-fading.png
new file mode 100644
index 000000000..368e075c5
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-fading.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-fixlength.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-fixlength.png
new file mode 100644
index 000000000..6be3219a3
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-fixlength.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-infinite.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-infinite.png
new file mode 100644
index 000000000..b36e2ab60
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-infinite.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-length.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-length.png
new file mode 100644
index 000000000..3f204cf25
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-length.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-orig.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-orig.png
new file mode 100644
index 000000000..eb306e834
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-orig.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-shadminus.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-shadminus.png
new file mode 100644
index 000000000..9e325b091
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-shadminus.png differ
diff --git a/images/C/filters/examples/light-and-shadow/long-shadow-ex-shadonly.png
b/images/C/filters/examples/light-and-shadow/long-shadow-ex-shadonly.png
new file mode 100644
index 000000000..157cd4631
Binary files /dev/null and b/images/C/filters/examples/light-and-shadow/long-shadow-ex-shadonly.png differ
diff --git a/images/C/filters/light-and-shadow/long-shadow-dialog.png
b/images/C/filters/light-and-shadow/long-shadow-dialog.png
new file mode 100644
index 000000000..69ed9dfa2
Binary files /dev/null and b/images/C/filters/light-and-shadow/long-shadow-dialog.png differ
diff --git a/src/filters/light-and-shadow.xml b/src/filters/light-and-shadow.xml
index 0f70df1b2..938eef8e5 100644
--- a/src/filters/light-and-shadow.xml
+++ b/src/filters/light-and-shadow.xml
@@ -25,7 +25,7 @@
<!-- Shadows -->
<xi:include href="light-and-shadow/drop-shadow.xml"/>
- <!--<xi:include href="light-and-shadow/long-shadow.xml"/>-->
+ <xi:include href="light-and-shadow/long-shadow.xml"/>
<!--<xi:include href="light-and-shadow/vignette.xml"/>-->
<xi:include href="light-and-shadow/drop-shadow-legacy.xml"/>
<xi:include href="light-and-shadow/perspective-shadow.xml"/>
diff --git a/src/filters/light-and-shadow/long-shadow.xml b/src/filters/light-and-shadow/long-shadow.xml
new file mode 100644
index 000000000..25c795f89
--- /dev/null
+++ b/src/filters/light-and-shadow/long-shadow.xml
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+ "http://www.docbook.org/xml/4.3/docbookx.dtd">
+<!-- section history:
+ 2019-01-01 j.h: create
+-->
+<sect2 xmlns:xi="http://www.w3.org/2001/XInclude" id="gimp-filter-long-shadow">
+ <title>Long Shadow</title>
+
+ <indexterm>
+ <primary>Filters</primary>
+ <secondary>Long Shadow</secondary>
+ </indexterm>
+ <indexterm>
+ <primary>Long Shadow</primary>
+ </indexterm>
+
+ <sect3>
+ <title>Overview</title>
+ <para>
+ This GEGL-based filter appeared with GIMP-2.10.6. It simplifies creating
+ long shadows in several visual styles.
+ </para>
+ </sect3>
+
+ <sect3>
+ <title>Activate the filter</title>
+ <para>
+ You can find this filter in the image menu menu through
+ <menuchoice>
+ <guimenu>Filters</guimenu>
+ <guisubmenu>Light and Shadow</guisubmenu>
+ <guimenuitem>Long Shadow…</guimenuitem>
+ </menuchoice>.
+ </para>
+ <para>
+ This filter is normally disabled. You must add an Alpha channel to your
+ image to use it.
+ </para>
+ </sect3>
+
+ <sect3>
+ <title>Options</title>
+ <figure>
+ <title><quote>Long Shadow</quote> filter options</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+fileref="images/filters/light-and-shadow/long-shadow-dialog.png"
+format="PNG"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <variablelist>
+ <varlistentry>
+ <term>Presets, Preview, Split view</term>
+ <listitem>
+ <xi:include href="../about-common-features.xml"/>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Style</term>
+ <listitem>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+ fileref="images/filters/examples/light-and-shadow/long-shadow-ex-orig.png"/>
+ </imageobject>
+ <caption>
+ Original: the text layer is Menus/layer/Layer to Image Size
+ </caption>
+ </mediaobject>
+ <para>
+ You can use different styles <guilabel>Finite</guilabel> that is
+ default, <guilabel>Infinite</guilabel>, <guilabel>Fading</guilabel>,
+ and <guilabel>Fading (fixed length)</guilabel>.
+ </para>
+ <figure>
+ <title><quote>Style</quote> option examples</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+ fileref="images/filters/examples/light-and-shadow/long-shadow-ex-default.png"/>
+ </imageobject>
+ <caption>
+ Finite (default)
+ </caption>
+ </mediaobject>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+fileref="images/filters/examples/light-and-shadow/long-shadow-ex-infinite.png"/>
+ </imageobject>
+ <caption>
+ Infinite
+ </caption>
+ </mediaobject>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+
+fileref="images/filters/examples/light-and-shadow/long-shadow-ex-fading.png"/>
+ </imageobject>
+ <caption>
+ Fading
+ </caption>
+ </mediaobject>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+fileref="images/filters/examples/light-and-shadow/long-shadow-ex-fixlength.png"/>
+ </imageobject>
+ <caption>
+ Fading (fixed length); length = 30
+ </caption>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Angle</term>
+ <listitem>
+ <para>
+ Shadow angle, in degrees.
+ </para>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+fileref="images/filters/examples/light-and-shadow/long-shadow-ex-angle.png"/>
+ </imageobject>
+ <caption>
+ Angle = 110°
+ </caption>
+ </mediaobject>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Length</term>
+ <listitem>
+ <para>
+ Shadow length, in pixels
+ </para>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+fileref="images/filters/examples/light-and-shadow/long-shadow-ex-length.png"/>
+ </imageobject>
+ <caption>
+ Length = 30
+ </caption>
+ </mediaobject>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>Composition</term>
+ <listitem>
+ <para>
+ <guilabel>Shadow plus image</guilabel> is default.
+ </para>
+ <figure>
+ <title><quote>Composition</quote> option examples</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+fileref="images/filters/examples/light-and-shadow/long-shadow-ex-shadonly.png"/>
+ </imageobject>
+ <caption>
+ <para>
+ Shadow only
+ </para>
+ </caption>
+ </mediaobject>
+ <mediaobject>
+ <imageobject>
+ <imagedata format="PNG"
+fileref="images/filters/examples/light-and-shadow/long-shadow-ex-shadminus.png"/>
+ </imageobject>
+ <caption>
+ <para>
+ Shadow minus image
+ </para>
+ </caption>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </sect3>
+</sect2>
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]