Code

0292808e413b7c930bf5921c680cb4f8c45748f6
[inkscape.git] / src / extension / internal / filter / zebra.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_ZEBRA_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_ZEBRA_H__
3 /* Change the 'ZEBRA' 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 Zebra : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22         static void init (void) {
23                 filter_init("zebra",     /* ID -- should be unique */
24                             N_("Zebra Stripes"), /* Name in the menus, should have a N_() around it for translation */
25                             N_("Paint your object with zebra stripes"),
26                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
27                                         "<filter>\n"
28                         "<feColorMatrix type=\"matrix\" values=\"0.15 0.3 0.05 0 0.5 0.15 0.3 0.05 0 0.5 0.15 0.3 0.05 0 0.5 0 0 0 1 0\" result=\"result0\"/>\n"
29                         "<feTurbulence numOctaves=\"1\" baseFrequency=\"0.078388278388278387 0.012454212454212455\"/>\n"
30                         "<feColorMatrix values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 -0.8\"/>\n"
31                         "<feComposite in2=\"result0\" operator=\"atop\"/>\n"
32                                         "</filter>\n");
33                                                  /* The XML of the filter that should be added.  There
34                                                   * should be a <svg:filter> surrounding what you'd like
35                                                   * to be added with this effect. */
36         };
37 };
39 }; /* namespace Filter */
40 }; /* namespace Internal */
41 }; /* namespace Extension */
42 }; /* namespace Inkscape */
44 /* Change the 'ZEBRA' below to be your file name */
45 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_ZEBRA_H__ */