Chapter 16. Filter Effects - Preset¶
本章の最初のパラグラフ:
Filter Effects (Filters) are a feature of SVG that allow an SVG viewer to change the presentation of an object in a well-defined manner such as adding texture to a Fill, giving an object a blurred shadow, or modifying the object’s color. Inkscape supports almost all SVG Filter primitives (see next chapter) and includes many Preset (predefined) filters.
から、フィルター効果という概念の存在と、Inkscape ではそのオブジェクトを原始フィルターと既製フィルターの二段構えで用意していることを推察する。
Support of Filters is rather new in many web browsers. Don’t be surprised to find bugs. Internet Explorer 9 will still not support filters.
この記述は現代のブラウザー事情では心配する必要はなかろう。
This chapter covers Preset filters, that is those Filters that are preconstructed for your use. The following chapter covers Custom filters where you build the filters yourself.
まずは出来合いのフィルターで有用なものを知りたいので、本章を先に取り組みたい。
Use of Preset Filters¶
オブジェクト選択後にメニュー選択で実行というのが共通手順だ:
Inkscape includes a couple of hundred Preset filters. These filters are accessed from the
menu. To use a built-in filter, just select the object(s) you wish to apply it to then select the from one of the sub-menus. A few of the built-in Filters have dialogs where you can adjust basic parameters.
フィルターは普通のオブジェクト用とビットマップ用とに大別される。
自作フィルターをメニューに組み込むことができる。
If you have developed your own Filters, you can add them as Presets by SVG files with the Filters defined to the filters directory (Linux
~/.config/inkscape/filters
).
Windows ならば %APPDATA%\inkscape\filters
なのだろう。しかし、このパスを Inkscape 1.2 の設定ダイアログから見つけることができない。
By default, the filters will be added to a Personal submenu. You can have more control over where the filters are placed if you define the following attributes:
inkscape:label
: Command label.
inkscape:menu
: Submenu name
inkscape:menu-tooltip
: Tool tip (for Notification Region).Inkscape includes an SVG file with samples of all the Preset Filters. The file,
filters.svg
, is located in the examples directory that can be found in the File Open dialog. Be prepared to wait as the file requires processing hundreds of Filters.
実際に当該ファイルをテキストエディターで開くと、内容は 2600 行くらいの SVG ファイルだ。これを精査すれば自作フィルターの XML 要素を定義する方法を解読できるだろう。
ABCs¶
利用者ノート
Inkscape 1.2 で行方不明。ファイル
%ProgramFiles%\Inkscape\share\inkscape\filters\filters.svg
を
ABC
で grep して見つからなかったのでないと判断した。
Bevels¶
読者ノート
以降の表は前述の SVG ファイルから xsltproc で抽出して作成した。本文で少し触れているように、メニューは組み込みコマンドと
filters.svg
からロード(起動時?)したものがマージされたものだ。前者のコマンド名を自動抽出する方法が現在わからないので、せめて後者の一覧だけでもここに残しておく:
filters.svg
にないメニュー項目だ:
次以降のサブメニューでは組み込みコマンドの言及を省略する。
Command |
Tooltip |
---|---|
Soft, cushion-like bevel with matte highlights |
|
Bright metallic effect for any color |
|
Soft bevel, slightly depressed middle |
|
Basic specular bevel to use for building textures |
|
Illuminated glass effect with light coming from beneath |
|
Transparent plastic with deep colors |
|
Bevel, crude light, discoloration and glow like in electronic microscopy |
|
Fat oil with some adjustable turbulence |
|
Glowing metal texture |
|
Low, sharp bevel |
|
Soft, pastel-colored, blurry bevel |
|
Glossy bevel with blurred edges |
|
Matte bevel with blurred edges |
|
Smooth drop-like bevel with metallic finish |
|
Melting parts of object together, with a glossy bevel and a glow |
|
Neon light effect |
|
Pressed metal with a rolled edge |
|
Strongly raised border around a flat surface |
|
Ridged border with inner bevel |
|
Same as Matte jelly but with more controls |
|
Illuminated stained glass effect |
|
Illuminated translucent plastic or glass effect |
Blurs¶
Command |
Tooltip |
---|---|
Edges are partly feathered out |
|
Overlays two copies with different blur amounts and modifiable blend and composite |
|
Blur the contents of objects, preserving the outline and adding progressive transparency at edges |
Bumps¶
Best for bitmaps, but also useful for normal objects.
本書では両方の実行例を掲載している。
Command |
Tooltip |
---|---|
Matte emboss effect |
|
Specular emboss effect |
|
Two types of lighting emboss effect |
|
Flexible bubbles effect with some displacement |
|
Same as Bubbly Bumps but with transparent highlights |
|
Same as Bubbly Bumps but with a diffuse light instead of a specular one |
|
Carving emboss effect |
|
Canvas texture with an HSL sensitive height map |
|
Same as Canvas Bumps but with transparent highlights |
|
Same as Canvas Bumps but with a diffuse light instead of a specular one |
|
Convoluted emboss effect |
|
Emboss effect: 3D relief where white is replaced by black |
|
Combine a HSL edges detection bump with a leathery or woody and colorizable texture |
|
Same as HSL Bumps but with transparent highlights |
|
Convert pictures to thick jelly |
|
Painting canvas emboss effect |
|
Paper like emboss effect |
|
Combine a HSL edges detection bump with a matte and crumpled surface effect |
|
Colored plaster emboss effect |
|
Matte modeling paste emboss effect |
|
HSL edges detection bump with a wavy reflective surface effect and variable crumple |
|
Bumps effect with a bevel, color flood and complex lighting |
|
Painting canvas emboss effect |
|
Thick acrylic paint texture with high texture depth |
|
Thick painting effect with turbulence |
|
Metallic foil effect combining two lighting types and variable crumple |
|
Gives Smooth Bumps velvet like |
|
Thick glossy and translucent paint texture with high depth |
Color¶
Command |
Tooltip |
---|---|
Light areas turn to black |
|
Blend an image with its hue opposite |
|
Oversaturate colors which can be fluorescent in real world |
|
Fades hue progressively to white |
|
Colorize separately the three color channels |
|
Render Cyan, Magenta and Yellow channels with a colorizable background |
|
Adds a colorizable edges glow inside objects and pictures |
|
Like Duochrome but with three colors |
Distort¶
Command |
Tooltip |
---|---|
Low turbulence gives sponge look and high turbulence chalk |
|
Something like a water noise |
|
Van Gogh painting effect for bitmaps |
|
Horizontal rippling of edges |
|
Create a turbulent contour around |
|
Roughen all inside shapes |
|
Paint objects with a transparent turbulence which wraps around color edges |
|
Displace the outside of shapes and pictures without altering their content |
Fill and Transparency¶
本書にこの節はないが、Inkscape にこのメニュー項目があるので勝手にノートとして追加する。
Command |
Tooltip |
---|---|
Does not filter but adds a filter region |
|
Adds a colorizable opaque background |
|
Adds a white opaque background |
|
Convert to a colorizable transparent positive or negative |
|
Create a semi transparent posterized image |
|
Creates an approximative semi-transparent and colorizable image of the saturation levels |
Image Effects¶
Command |
Tooltip |
---|---|
Imitate aged photograph |
|
Adds a small scale graininess |
|
Sharpen edges and boundaries within the object, force=0.15 |
|
Sharpen edges and boundaries within the object, force=0.3 |
|
Glowing image content without blurring it |
Image Effects, Transparent¶
メニュー項目
以下に対応する節と思われる。Command |
Tooltip |
---|---|
Gives a transparent fluid drawing effect with rough line and filling |
|
Gives a transparent engraving effect with rough line and filling |
|
Gives a controllable roughness engraving effect to bitmaps and materials |
|
Detect color edges and retrace them in blue |
|
Old chromolithographic effect |
|
Overlay with a small scale screen like noise |
|
Adds a small scale screen like noise locally |
|
Enhance and redraw color edges in 1 bit black and white |
|
Uses vertical specular light to draw lines |
|
Gives a fluid and wavy expressionist drawing effect to images |
|
Create a two colors lithographic effect |
|
Marbled transparency effect which conforms to image detected edges |
|
Simulate oil painting style |
|
Slightly posterize and draw edges like on old printed postcards |
|
Detect color edges and retrace them in grayscale |
|
Poster Color Fun |
|
Enhance and redraw edges around posterized areas |
|
Adds roughness to one of the two channels of the Poster paint filter |
Materials¶
Command |
Tooltip |
---|---|
3D warped marble texture |
|
3D warped, iridescent pearly shell texture |
|
3D warped, fibered wood texture |
|
A volcanic texture, a little like leather |
|
Slightly cracked enameled texture |
|
Eroded metal texture with ridges, grooves, holes and bumps |
|
Bright, polished uneven metal casting, colorizable |
|
Fat pasted cast metal, with golden highlights |
|
Splattered cast metal, with golden highlights |
|
Waxy texture which keeps its iridescence through color fill change |
|
Leopard spots (loses object’s own color) |
|
Stylized reptile skin texture |
|
Metallized effect with a soft lighting, slightly translucent at the edges |
|
Peeling painting on a wall |
Morphology¶
ここは本書と少し異なる。
Command |
Tooltip |
---|---|
Creates a black light inside and outside |
|
Sharp multiple contour for objects |
|
Blurred multiple contours for objects |
|
Blurred colorized contour, empty inside |
|
Converts blurred contour to posterized steps |
|
Blurred colorized contour, filled inside |
Non Realistic 3D Shaders¶
Command |
Tooltip |
---|---|
Aluminium effect with sharp brushed reflections |
|
Satiny aluminium effect with embossing |
|
Draft painted cartoon shading with a glassy look |
|
Satiny metal surface effect |
|
Bright chrome effect |
|
Embossed chrome effect |
|
Comics cartoon drawing effect |
|
Comics shader with creamy waves transparency |
|
Draft painted cartoon shading with a glassy look |
|
Cartoon paint style with some fading at the edges |
|
Satiny and embossed contour effect |
|
Dark chrome effect |
|
Deep and dark metal shading |
|
Combination of satiny and emboss effect |
|
Satiny glass effect |
|
Contouring version of smooth shader |
|
Double reflection through glass with some refraction |
|
Unrealistic reflections with sharp edges |
|
Chrome effect with darkened edges |
Overlays¶
悦楽の園とはどういうことだ。
Command |
Tooltip |
---|---|
Basic noise fill texture; adjust color in Flood |
|
Basic noise fill texture; adjust color in Flood |
|
Gray bevelled wires with drop shadows |
|
Marble-like bluish speckles |
|
Gives a canvas like HSL sensitive transparency. |
|
White splotches evocating carnaval masks |
|
Airy, fluffy, sparse white clouds |
|
Basic noise fill texture; adjust color in Flood |
|
Adds a small scale screen like graininess |
|
Adds a small scale crossy graininess |
|
Gives a pointillist HSL sensitive transparency |
|
Basic noise fill texture; adjust color in Flood |
|
Flake-like white splotches |
|
Phantasmagorical turbulent wisps, like Hieronymus Bosch’s Garden of Delights |
|
Random rounded living cells like fill |
|
Basic noise fill texture; adjust color in Flood |
|
Colorizable filling with liquid transparency |
|
Rainbow-colored semitransparent oily splotches |
|
Colorized blotches, like a crowd of people |
|
Basic noise fill texture; adjust color in Flood |
|
Adds a turbulent transparency which displaces pixels at the same time |
|
Random whiteouts inside |
|
Colorized mountain tops out of the fog |
|
Colorizable filling with flow inside like transparency |
|
Basic noise transparency texture |
|
Paint objects with a transparent turbulence which turns around color edges |
|
Fill object with sparse translucent specks |
|
Random inner-bevel holes |
|
Checkered tartan pattern |
|
Highly configurable checkered tartan pattern |
|
Tiger fur pattern with folds and bevel around the edges |
|
Tartan pattern with a wavy displacement and bevel around the edges |
|
Irregular vertical dark stripes (loses object’s own color) |
Protrusions¶
Command |
Tooltip |
---|---|
Creates colorizable blotches which smoothly flow over the edges of the lines at their crossings |
|
Random paint streaks downwards |
|
Edges of object are on fire |
|
Inky splotches underneath the object |
Ridges¶
Command |
Tooltip |
---|---|
Gel Ridge with a pearlescent look |
|
Bubble effect with refraction and glow |
|
Soft pastel ridge |
|
Gel Ridge metallized at its top |
|
Gel effect with light refraction |
|
Gel effect with strong refraction |
|
Thin like a soap membrane |
Scatter¶
Command |
Tooltip |
---|---|
Convert to small scattered particles with some thickness |
|
Scattered cubes; adjust the Morphology primitive to vary size |
|
Leaves on the ground in Fall, or living foliage |
|
Gives a turbulent pointillist HSL sensitive transparency |
Shadows and Glows¶
Command |
Tooltip |
---|---|
In and out glow with a possible offset and colorizable flood |
|
Darkens the edge with an inner blur and adds a flexible glow |
|
Cut out, add inner shadow and colorize some parts of an image |
|
Inner colorized shadow, outer black shadow |
|
Shadowy outer bevel |
Textures¶
Command |
Tooltip |
---|---|
Bark texture, vertical; use with deep colors |
|
Inkblot on blotting paper |
|
Torn edges with a dark inner blur |
|
Burst balloon texture crumpled and with holes |
|
Under a cracked glass |
|
Crumpled matte plastic, with melted edge |
|
Felt like texture with color turbulence and slightly darker at the edges |
|
Partly opaque water color effect with bleed |
|
Ink paint on paper with some turbulent color shift |
|
Glossy clumpy jam spread |
|
Smooth rainbow colors slightly melted along the edges |
|
Bulging, knotty, slick 3D surface |
|
Riddle the surface and add bump to images |
|
Aquarelle paper effect which can be used for pictures as for objects |
|
Crumpled glossy paper effect which can be used for pictures as for objects |
|
Silk carpet texture, horizontal stripes |
|
Stone wall texture to use with not too saturated colors |
|
Smooth rainbow colors melted along the edges and colorizable |
|
Smooth rainbow colors warped along the edges and colorizable |
|
Cloudy watercolor effect |
|
Wax print on tissue texture |
Transparency Utilities¶
Inkscape 1.2 にはこの名前のメニューが見当たらない。これに対応するメニューがさっき勝手に追加した
だろうか。Todo
に出てくるコマンド名やキャプションに知らない英単語が多く出現する。辞書を自作するべきだろう。