Code

ec47224492427a6359b5a8c78653745e6f0a9cb6
[inkscape.git] / src / extension / internal / filter / emboss.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_EMBOSS_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_EMBOSS_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  */
10 #include "filter.h"
12 namespace Inkscape {
13 namespace Extension {
14 namespace Internal {
15 namespace Filter {
17 class Emboss : public Inkscape::Extension::Internal::Filter::Filter {
18 public:
19         static void init (void) {
20                 filter_init("emboss",     /* ID -- should be unique */
21                             N_("Emboss"), /* Name in the menus, should have a N_() around it for translation */
22                             N_("Emboss effect"),
23                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
24                                         "<filter>\n"
25                         "<feGaussianBlur result=\"result0\" in=\"SourceAlpha\" stdDeviation=\"1.01\" />\n"
26                         "<feOffset stdDeviation=\"0.40000000000000002\" result=\"result3\" in=\"result0\" dy=\"2\" dx=\"2\" />\n"
27                         "<feSpecularLighting specularExponent=\"35\" specularConstant=\"1.05\" surfaceScale=\"0.75\" lighting-color=\"rgb(217,217,217)\" result=\"result1\" in=\"result0\">\n"
28                         "<fePointLight z=\"20000\" y=\"-10000\" x=\"-5000\" />\n"
29                         "</feSpecularLighting>\n"
30                         "<feComposite operator=\"in\" result=\"result2\" in=\"result1\" in2=\"SourceAlpha\" />\n"
31                         "<feComposite k3=\"0.99999999999999989\" k2=\"0.99999999999999989\" operator=\"arithmetic\" result=\"result4\" in=\"SourceGraphic\" />\n"
32                         "<feMerge><feMergeNode in=\"result3\" />\n"
33                         "<feMergeNode in=\"result4\" />\n"
34                         "</feMerge>\n"
35                                         "</filter>\n");
36                                                  /* The XML of the filter that should be added.  There
37                                                   * should be a <svg:filter> surrounding what you'd like
38                                                   * to be added with this effect. */
39         };
40 };
42 }; /* namespace Filter */
43 }; /* namespace Internal */
44 }; /* namespace Extension */
45 }; /* namespace Inkscape */
47 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_EMBOSS_H__ */