diff options
Diffstat (limited to 'src/trigger.c')
-rw-r--r-- | src/trigger.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/trigger.c b/src/trigger.c index 7790d9d..86a39be 100644 --- a/src/trigger.c +++ b/src/trigger.c @@ -14,18 +14,17 @@ INIT { this->do_x = propertyb("flip x") || propertyb("x"); this->do_y = propertyb("flip y") || propertyb("y"); this->color_group = propertyi_default("color group", 0); + this->fade_in = propertyi_default("fade in", 0); const auto color = propertyc("color"); if (color != nullptr && strlen(color) > 8) { - this->color.r = strtobyte(color + 3); - this->color.g = strtobyte(color + 5); - this->color.b = strtobyte(color + 7); - this->color.a = strtobyte(color + 1); + this->color.r = strtobyte(color + 3) / 255.; + this->color.g = strtobyte(color + 5) / 255.; + this->color.b = strtobyte(color + 7) / 255.; } else { this->color.r = 0; this->color.g = 0; this->color.b = 0; - this->color.a = 255; } } |