aboutsummaryrefslogtreecommitdiff
path: root/Plugins/green.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/green.cpp')
-rw-r--r--Plugins/green.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Plugins/green.cpp b/Plugins/green.cpp
new file mode 100644
index 0000000..c66e3e6
--- /dev/null
+++ b/Plugins/green.cpp
@@ -0,0 +1,14 @@
+// this is just an example of using the pixels-class..
+
+#include "plugin.h"
+#include "pixels.h"
+
+void perform_effect(_frame f, _args a)
+{
+ pixels p(f);
+ while(!p.eof())
+ {
+ p.putrgb(0, p.green(), 0);
+ p.next();
+ }
+}