Code

7816f19bb6bdd4949ba307c7bdd4c315dfbfcbc9
[inkscape.git] / src / extension / internal / filter / fire.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_FIRE_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_FIRE_H__
3 /* Change the 'FIRE' 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 Fire : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22         static void init (void) {
23                 filter_init("fire",     /* ID -- should be unique */
24                             N_("Fire"), /* Name in the menus, should have a N_() around it for translation */
25                             N_("Artist on fire"),
26                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
27                                         "<filter x=\"-0.080000000000000029\" height=\"1.3900000000000001\" width=\"1.21\" y=\"-0.22000000000000008\">\n"
28                         "<feMorphology operator=\"dilate\" radius=\"2.4128686327077746\" result=\"result1\"/>\n"
29                         "<feTurbulence numOctaves=\"1\" baseFrequency=\"0.0900804289544236 0.027882037533512066\"/>\n"
30                         "<feColorMatrix values=\"2 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 0\" result=\"result2\" type=\"matrix\"/>\n"
31                         "<feDisplacementMap in=\"result1\" xChannelSelector=\"R\" yChannelSelector=\"G\" scale=\"10.319410319410318\" result=\"result4\"/>\n"
32                         "<feFlood flood-color=\"rgb(255,159,54)\" flood-opacity=\"1\" result=\"result3\"/>\n"
33                         "<feMorphology in=\"result4\" result=\"result7\" radius=\"3.755868544600939\"/>\n"
34                         "<feGaussianBlur stdDeviation=\"2.3571830985915487\" in=\"result7\" result=\"result7\"/>\n"
35                         "<feComposite operator=\"in\" in=\"result3\" in2=\"result4\" result=\"result5\"/>\n"
36                         "<feComposite in2=\"result7\" operator=\"out\"/>\n"
37                         "<feOffset dx=\"-4.5\" dy=\"-7\" result=\"result6\"/>\n"
38                         "<feGaussianBlur stdDeviation=\"4.8352546916890073\" result=\"result7\"/>\n"
39                         "<feComposite in2=\"result6\" in=\"SourceGraphic\"/>\n"
40                         "<feComposite in2=\"result7\"/>\n"
41                                         "</filter>\n");
42                                                  /* The XML of the filter that should be added.  There
43                                                   * should be a <svg:filter> surrounding what you'd like
44                                                   * to be added with this effect. */
45         };
46 };
48 }; /* namespace Filter */
49 }; /* namespace Internal */
50 }; /* namespace Extension */
51 }; /* namespace Inkscape */
53 /* Change the 'FIRE' below to be your file name */
54 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_FIRE_H__ */