0b99cbc86685c26a5ea8650ba23d19dd16c8792c
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_SNOW_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_SNOW_H__
3 /* Change the 'SNOW' 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 Snow : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22 static void init (void) {
23 filter_init("snow", /* ID -- should be unique */
24 N_("Snow"), /* Name in the menus, should have a N_() around it for translation */
25 N_("When the weather outside is frightening..."),
26 /* Menu tooltip to help users understand the name. Should also have a N_() */
27 "<filter>\n"
28 "<feConvolveMatrix order=\"3 3\" kernelMatrix=\"1 1 1 0 0 0 -1 -1 -1\" preserveAlpha=\"false\" divisor=\"3\"/>\n"
29 "<feMorphology operator=\"dilate\" radius=\"1 3.2345013477088949\"/>\n"
30 "<feGaussianBlur stdDeviation=\"1.6270889487870621\" result=\"result0\"/>\n"
31 "<feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 0\" result=\"result1\"/>\n"
32 "<feOffset dx=\"0\" dy=\"1\" result=\"result5\"/>\n"
33 "<feDiffuseLighting in=\"result0\" diffuseConstant=\"2.2613065326633168\" surfaceScale=\"1\">\n"
34 "<feDistantLight azimuth=\"225\" elevation=\"32\"/>\n"
35 "</feDiffuseLighting>\n"
36 "<feComposite in2=\"result1\" operator=\"in\" result=\"result2\"/>\n"
37 "<feColorMatrix values=\"0.4 0 0 0 0.6 0 0.4 0 0 0.6 0 0 0 0 1 0 0 0 1 0\" result=\"result4\"/>\n"
38 "<feComposite in2=\"result5\" in=\"result4\"/>\n"
39 "<feComposite in2=\"SourceGraphic\"/>\n"
40 "</filter>\n");
41 /* The XML of the filter that should be added. There
42 * should be a <svg:filter> surrounding what you'd like
43 * to be added with this effect. */
44 };
45 };
47 }; /* namespace Filter */
48 }; /* namespace Internal */
49 }; /* namespace Extension */
50 }; /* namespace Inkscape */
52 /* Change the 'SNOW' below to be your file name */
53 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_SNOW_H__ */