Documentation
DMX_FadeRGB
boolean DMX_FadeRGB (int $InstanceID, int $R, int $G, int $B, float $FadeTime)
Parameters
InstanceID | ID of the device to be switched |
R | Brightness value 0 (off) to 255/65535 (8/16 bit) (on, maximum brightness) |
G | Brightness value 0 (off) to 255/65535 (8/16 bit) (on, maximum brightness) |
B | Brightness value 0 (off) to 255/65535 (8/16 bit) (on, maximum brightness) |
FadeTime | Time in seconds |
Returns
If the command succeeds, it returns TRUE, otherwise FALSE.
Description
Dims the red, green and blue channels of the ID InstanceID with a certain FadeTime.
Example
// Fade color to yellow in 5 seconds
// 8bit instance
DMX_FadeRGB(12345, 255, 255, 0, 5.0);
// 16bit instance
DMX_FadeRGB(12345, 65535, 65535, 0, 5.0);