From 4d64e4cd434426234a5c313c151cd79b6afc299e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juha=20Vehvil=C3=A4inen?= Date: Sat, 6 Jul 2002 17:50:18 +0000 Subject: *** empty log message *** svn path=/trunk/Framestein/; revision=27 --- Plugins/plot.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Plugins/plot.cpp (limited to 'Plugins/plot.cpp') diff --git a/Plugins/plot.cpp b/Plugins/plot.cpp new file mode 100644 index 0000000..67c264c --- /dev/null +++ b/Plugins/plot.cpp @@ -0,0 +1,25 @@ +#include +#include +#include +#include "plugin.h" +#include "pixels.h" + +// plot exists to provide plotting to vframe - much faster than +// plot with fs.draw which goes thru network. + +void perform_effect(_frame f, _args a) +{ + if(!a.s) return; + + char *t=strstr(a.s, " "); + if(!t) return; + + t[0]=0; + + int x=atoi(a.s); + int y=atoi(t+1); + + pixels p(f); + p.moveto(x, y); + p.putrgb(255, 255, 255); +} -- cgit v1.2.1