SCE Color

   Print  Previous  Next

For the SCE Color effect it is possible to set the speed and the color to display.

Functions Provided By SCE Color

Getting And Setting The Speed

The speed is to be set in BPM with a range of 0 to 9999 BPM. The following functions are available:

void SetBpm(int bpm)
int GetBpm()

 

If bpm is lower than 0, it is reduced to 0 which means that the effect will be stopped. If bpm is higher than 9999, it is lowered to 9999.

 

Getting And Setting The Speed (Deprecated Functions)

The speed of the effect can be set in the range of 0 to 166 frames per seconds. The following functions are available:

void SetSpeed(int fps)
int GetSpeed()

 

If FPS is lower than 0 or greater than 166, then a warning is written to the Script Editor output. Additionally, it will be automatically to 0/166 FPS which represents a range of 0 to almost 9999 BPM.

Please note: These functions are deprecated and may be removed in some forthcoming release of MADRIX. Please use SetBpm and GetBpm instead. Deprecated functions are outdated functions and should not be used anymore.

 

Setting And Getting The Color

It is possible to set the color the effect uses with the following function:

void SetColor(color col)
color GetColor()

 

This Effect uses the Color Picker. Learn more about Using Colors.