f161edf2fcc3101f8477f774804dfaa54f30b65b
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_BLOOM_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_BLOOM_H__
3 /* Change the 'BLOOM' 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 Bloom : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22 static void init (void) {
23 filter_init("bloom", /* ID -- should be unique */
24 N_("Bloom"), /* Name in the menus, should have a N_() around it for translation */
25 N_("Not sure, nobody tell me these things"),
26 /* Menu tooltip to help users understand the name. Should also have a N_() */
27 "<filter>\n"
28 "<feGaussianBlur stdDeviation=\"2.1526428571428569\" in=\"SourceAlpha\" result=\"result1\"/>\n"
29 "<feSpecularLighting surfaceScale=\"5\" specularConstant=\"2\" specularExponent=\"18.063876651982376\" result=\"result0\">\n"
30 "<feDistantLight elevation=\"24\" azimuth=\"225\"/>\n"
31 "</feSpecularLighting>\n"
32 "<feComposite in2=\"SourceAlpha\" operator=\"in\" result=\"result6\"/>\n"
33 "<feMorphology operator=\"dilate\" radius=\"5.7142857142857144\"/>\n"
34 "<feGaussianBlur stdDeviation=\"5.7237142857142853\" result=\"result11\"/>\n"
35 "<feDiffuseLighting in=\"result1\" diffuseConstant=\"2.0099999999999998\" result=\"result3\" surfaceScale=\"5\">\n"
36 "<feDistantLight azimuth=\"225\" elevation=\"25\"/>\n"
37 "</feDiffuseLighting>\n"
38 "<feBlend blend=\"normal\" in2=\"SourceGraphic\" in=\"result3\" mode=\"multiply\" result=\"result7\"/>\n"
39 "<feComposite in2=\"SourceAlpha\" operator=\"in\" in=\"result7\"/>\n"
40 "<feBlend blend=\"normal\" in=\"result6\" mode=\"lighten\" result=\"result9\"/>\n"
41 "<feComposite in=\"result11\"/>\n"
42 "</filter>\n");
43 /* The XML of the filter that should be added. There
44 * should be a <svg:filter> surrounding what you'd like
45 * to be added with this effect. */
46 };
47 };
49 }; /* namespace Filter */
50 }; /* namespace Internal */
51 }; /* namespace Extension */
52 }; /* namespace Inkscape */
54 /* Change the 'BLOOM' below to be your file name */
55 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_BLOOM_H__ */