7e160c0a202d002f11f040d3de5372239c343962
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_LEOPARD_FUR_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_LEOPARD_FUR_H__
3 /* Change the 'LEOPARD_FUR' above to be your file name */
5 /*
6 * Copyright (C) 2008 Authors:
7 * Ted Gould <ted@gould.cx>
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
11 /* ^^^ Change the copyright to be you and your e-mail address ^^^ */
13 #include "filter.h"
15 namespace Inkscape {
16 namespace Extension {
17 namespace Internal {
18 namespace Filter {
20 class LeopardFur : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22 static void init (void) {
23 filter_init("leopard-fur", /* ID -- should be unique */
24 N_("Leopard Fur"), /* Name in the menus, should have a N_() around it for translation */
25 N_("Purrrr, quiet the kitty is sleeping"),
26 /* Menu tooltip to help users understand the name. Should also have a N_() */
27 "<filter>\n"
28 "<feTurbulence baseFrequency=\"0.14299516908212559\" numOctaves=\"5\" type=\"fractalNoise\"/>\n"
29 "<feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 -3.45\"/>\n"
30 "<feComposite result=\"result3\" in2=\"SourceAlpha\" operator=\"in\"/>\n"
31 "<feColorMatrix values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 6 0\"/>\n"
32 "<feMorphology result=\"result3\" radius=\"1.8181818181818181\" operator=\"dilate\"/>\n"
33 "<feGaussianBlur result=\"result3\" stdDeviation=\"1\"/>\n"
34 "<feGaussianBlur stdDeviation=\"2.7287613293051356\"/>\n"
35 "<feComposite in2=\"result3\" result=\"result1\" operator=\"out\"/>\n"
36 "<feColorMatrix result=\"result3\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0\"/>\n"
37 "<feFlood result=\"result2\" flood-opacity=\"1\" flood-color=\"rgb(209,151,45)\" />\n"
38 "<feComposite operator=\"in\" in=\"result2\" in2=\"SourceGraphic\" />\n"
39 "<feComposite in=\"result3\" result=\"result3\" operator=\"atop\" />\n"
40 "<feGaussianBlur stdDeviation=\"7.1521428571428558\" in=\"SourceAlpha\"/>\n"
41 "<feDiffuseLighting diffuseConstant=\"1.9197207678883073\" surfaceScale=\"10.600706713780937\">\n"
42 "<feDistantLight azimuth=\"225\" elevation=\"48\"/>\n"
43 "</feDiffuseLighting>\n"
44 "<feBlend blend=\"normal\" in2=\"result3\" mode=\"multiply\" result=\"result3\"/>\n"
45 "<feComposite in2=\"SourceAlpha\" operator=\"in\" result=\"result3\"/>\n"
46 "<feTurbulence baseFrequency=\"0.10577777777777778\" numOctaves=\"3\" />\n"
47 "<feDisplacementMap scale=\"4.5454545454545459\" yChannelSelector=\"G\" xChannelSelector=\"R\" in=\"result3\"/>\n"
48 "</filter>\n");
49 /* The XML of the filter that should be added. There
50 * should be a <svg:filter> surrounding what you'd like
51 * to be added with this effect. */
52 };
53 };
55 }; /* namespace Filter */
56 }; /* namespace Internal */
57 }; /* namespace Extension */
58 }; /* namespace Inkscape */
60 /* Change the 'LEOPARD_FUR' below to be your file name */
61 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_LEOPARD_FUR_H__ */