aboutsummaryrefslogtreecommitdiff
path: root/Plugins/setbits.c
blob: dddc5ebc0ee5199e7cf1ff4a378d9a6671969a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdlib.h>
#include "plugin.h"

void perform_effect(_frame f, _args a)
{
	unsigned char c;

	if(!a.s) return;
	c = atoi(a.s);
	memset(f.bits, c, f.height*f.lpitch);
}