Code

d6372c13fecc6bf1ce9132bdcb2c90557b4dc2af
[inkscape.git] / src / extension / internal / filter / melt.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_MELT_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_MELT_H__
3 /*
4  * Copyright (C) 2008 Authors:
5  *   Ted Gould <ted@gould.cx>
6  *   Filter designed by Chrisdesign (http://chrisdesign.wordpress.com/filter-effects/)
7  *
8  * Released under GNU GPL, read the file 'COPYING' for more information
9  */
11 #include "filter.h"
13 namespace Inkscape {
14 namespace Extension {
15 namespace Internal {
16 namespace Filter {
18 class Melt : public Inkscape::Extension::Internal::Filter::Filter {
19 public:
20         static void init (void) {
21                 filter_init("melt",     /* ID -- should be unique */
22                             N_("Melt"), /* Name in the menus, should have a N_() around it for translation */
23                             N_("Melt effect"),
24                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
25                                         "<filter>\n"
26                         "<feGaussianBlur stdDeviation=\"10\" in=\"SourceGraphic\" result=\"result0\" />\n"
27                         "<feTurbulence result=\"result1\" numOctaves=\"8\" seed=\"488\" baseFrequency=\"0.012000000000000004\" />\n"
28                         "<feComposite in=\"result0\" in2=\"result1\" operator=\"in\" result=\"result2\" />\n"
29                         "<feSpecularLighting in=\"result2\" specularExponent=\"100.40000000000001\" specularConstant=\"3.9400000000000004\" result=\"result4\">\n"
30                         "<feDistantLight azimuth=\"225\" elevation=\"62\" />\n"
31                         "</feSpecularLighting>\n"
32                         "<feComposite operator=\"atop\" in=\"result4\" in2=\"result2\" />\n"
33                         "<feConvolveMatrix order=\"5 5\" kernelMatrix=\"0 0 0 0 0 0 0 -1 0 0 0 -1 5 -1 0 0 0 -1 0 0 0 0 0 0 1\" />\n"
34                                         "</filter>\n");
35                                                  /* The XML of the filter that should be added.  There
36                                                   * should be a <svg:filter> surrounding what you'd like
37                                                   * to be added with this effect. */
38         };
39 };
41 }; /* namespace Filter */
42 }; /* namespace Internal */
43 }; /* namespace Extension */
44 }; /* namespace Inkscape */
46 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_MELT_H__ */