b0a9733e25177456691f8e7a4d24b12e10d8fcac
1 #ifndef __INKSCAPE_EXTENSION_INTERNAL_FILTER_SPECKLE_H__
2 #define __INKSCAPE_EXTENSION_INTERNAL_FILTER_SPECKLE_H__
3 /* Change the 'SPECKLE' 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 Speckle : public Inkscape::Extension::Internal::Filter::Filter {
21 public:
22 static void init (void) {
23 filter_init("speckle", /* ID -- should be unique */
24 N_("Speckle"), /* Name in the menus, should have a N_() around it for translation */
25 N_("You look cute with speckles"),
26 /* Menu tooltip to help users understand the name. Should also have a N_() */
27 "<filter>\n"
28 "<feTurbulence type=\"fractalNoise\" baseFrequency=\"0.20952380952380956\" numOctaves=\"1\" result=\"result1\"/>\n"
29 "<feColorMatrix type=\"luminanceToAlpha\" in=\"SourceGraphic\" result=\"result0\"/>\n"
30 "<feColorMatrix result=\"result2\" values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.8 0\"/>\n"
31 "<feComposite in2=\"result2\" operator=\"over\" in=\"result1\"/>\n"
32 "<feColorMatrix values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -14\"/>\n"
33 "<feComposite in=\"SourceGraphic\" operator=\"out\"/>\n"
34 "</filter>\n");
35 /* The XML of the filter that should be added. There
36 * should be a <svg:filter> surrounding what you'd like
37 * to be added with this effect. */
38 };
39 };
41 }; /* namespace Filter */
42 }; /* namespace Internal */
43 }; /* namespace Extension */
44 }; /* namespace Inkscape */
46 /* Change the 'SPECKLE' below to be your file name */
47 #endif /* __INKSCAPE_EXTENSION_INTERNAL_FILTER_SPECKLE_H__ */