Code

a couple of trivial %d -> %u changes.
[inkscape.git] / src / extension / internal / filter / rubber-stamp.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_RUBBER_STAMP_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_RUBBER_STAMP_H__
3 /* Change the 'RUBBER_STAMP' 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 RubberStamp : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22         static void init (void) {
23                 filter_init("rubber-stamp",     /* ID -- should be unique */
24                             N_("RubberStamp"), /* Name in the menus, should have a N_() around it for translation */
25                             N_("Use this to forge your passport"),
26                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
27                                         "<filter>\n"
28                         "<feTurbulence type=\"fractalNoise\" numOctaves=\"4\" baseFrequency=\"0.064033264033264037\" in=\"SourceGraphic\" result=\"result1\"/>\n"
29                         "<feGaussianBlur stdDeviation=\"4.8612668463611852\" in=\"SourceAlpha\"/>\n"
30                         "<feComposite in=\"SourceAlpha\" operator=\"out\"/>\n"
31                         "<feComposite in2=\"result1\"/>\n"
32                         "<feColorMatrix values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -9\" numOctaves=\"3\" result=\"result1\"/>\n"
33                         "<feComposite in=\"SourceGraphic\" operator=\"in\" result=\"result1\"/>\n"
34                         "<feTurbulence numOctaves=\"1\" baseFrequency=\"0.03231597845601436\"/>\n"
35                         "<feDisplacementMap in=\"result1\" xChannelSelector=\"R\" yChannelSelector=\"G\" scale=\"4.0609137055837561\"/>\n"
36                                         "</filter>\n");
37                                                  /* The XML of the filter that should be added.  There
38                                                   * should be a <svg:filter> surrounding what you'd like
39                                                   * to be added with this effect. */
40         };
41 };
43 }; /* namespace Filter */
44 }; /* namespace Internal */
45 }; /* namespace Extension */
46 }; /* namespace Inkscape */
48 /* Change the 'RUBBER_STAMP' below to be your file name */
49 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_RUBBER_STAMP_H__ */