Code

b0d41a1af864385fe827b5757bfcbcc0439047f2
[inkscape.git] / src / extension / internal / filter / metal.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_METAL_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_METAL_H__
3 /* Change the 'METAL' 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 Metal : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22         static void init (void) {
23                 filter_init("metal",     /* ID -- should be unique */
24                             N_("Metal"), /* Name in the menus, should have a N_() around it for translation */
25                             N_("Iron Man vector objects"),
26                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
27                                         "<filter>\n"
28                         "<feColorMatrix result=\"result1\" in=\"SourceGraphic\" type=\"saturate\" values=\"0.369458\"/>\n"
29                         "<feGaussianBlur in=\"SourceAlpha\" stdDeviation=\"7.0222857142857134\"/>\n"
30                         "<feSpecularLighting surfaceScale=\"10\" specularConstant=\"3.8834951456310676\" specularExponent=\"7.971360381861575\">\n"
31                           "<feDistantLight elevation=\"17\" azimuth=\"225\" />\n"
32                         "</feSpecularLighting>\n"
33                         "<feComposite operator=\"atop\" in2=\"result1\"/>\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 /* Change the 'METAL' below to be your file name */
47 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_METAL_H__ */