Code

use 2geom bezier fitting (is copy of inkscape's)
[inkscape.git] / src / extension / internal / filter / ripple.h
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_RIPPLE_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_RIPPLE_H__
3 /* Change the 'RIPPLE' 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 Ripple : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22         static void init (void) {
23                 filter_init("ripple",     /* ID -- should be unique */
24                             N_("Ripple"), /* Name in the menus, should have a N_() around it for translation */
25                             N_("You're 80% water"),
26                                                      /* Menu tooltip to help users understand the name.  Should also have a N_() */
27                                         "<filter>\n"
28                         "<feTurbulence baseFrequency=\"0.001904761904761905 0.10666666666666667\" numOctaves=\"1\"/>\n"
29                         "<feColorMatrix values=\"2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0.5\"/>\n"
30                         "<feDisplacementMap in=\"SourceGraphic\" scale=\"14.317180616740089\" xChannelSelector=\"R\" yChannelSelector=\"A\"/>\n"
31                                         "</filter>\n");
32                                                  /* The XML of the filter that should be added.  There
33                                                   * should be a <svg:filter> surrounding what you'd like
34                                                   * to be added with this effect. */
35         };
36 };
38 }; /* namespace Filter */
39 }; /* namespace Internal */
40 }; /* namespace Extension */
41 }; /* namespace Inkscape */
43 /* Change the 'RIPPLE' below to be your file name */
44 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_RIPPLE_H__ */