This section features some examples of complex filters built out of primitives.
Settings: Color Matrix: In: Source Graphics, Mode: Luminance to Alpha. Diffuse Lighting: In: Color Matrix output, Diffuse Color: White, Surface Scale: 10, Constant: 2, Light Source: Distant Light, Azimuth: 45, Elevation: 15.
This filter effect is broken in Inkscape v0.46. It displays properly in v0.47 as well as Opera 9 and Firefox 3.
This example uses the Morphology primitive to create the glow around a neon tube. The glow color is derived from the neon color using the Color Matrix primitive. A couple Gaussian Blur primitives create the soft feel of the neon and a Merge primitive combines the neon and glow together.
Settings: Turbulence: Input: Source Alpha, Type: Turbulence, Base Frequency: 0.1, Octaves 5, Seed 0. Displacement Map: Input 1: Turbulence output, Input 2: Source Graphic, Scale:: 10, X Channel: Red, Y Channel: Green. Composite: Input 1: Displacement Map, Input 2: Source Graphic, Operator: In.
This filter effect displays in Opera 10 but not Firefox or Batik.
Settings: Turbulence: Input: Source Alpha, Type: Turbulence, Base Frequency: 0.5, Octaves 3, Seed 0. Color Matrix: Input: Turbulence output, Matrix: All 0 except a00 and a33 are 1. Composite: Input 1: Source Graphic, Input 2: Color Matrix, Operator: Arithmetic, K: 0, 1, −0.75, 0.
|© 2005-2010 Tavmjong Bah.||Get the Book or PDF.|