blob: 67c264c89c3014b43495eade92a5293931ee5750 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#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);
}
|