summaryrefslogtreecommitdiff
path: root/src/color.c
blob: 8f5b71b435b14910b9d4ea2e17c5f0ee784575ba (plain)
1
2
3
4
5
6
7
8
9
10
11
NAME(color);
PARENT(trigger);

IMPL(enter) {
	if (this->color_group)
		setfgcolor(1. / 255. * this->color.r, 1. / 255. * this->color.g,
		           1. / 255. * this->color.b);
	else
		setbgcolor(1. / 255. * this->color.r, 1. / 255. * this->color.g,
		           1. / 255. * this->color.b);
}