|
<< Click To Display Table Of Contents >> You Are Here: Macros For Effects > General Resources > Using Color Controls |

Some effects, such as »SCE Color or »SCE Wave / Radial, only support one particular color at a time. Then, make use of the following functions:
Function |
Description |
void SetColor(color col) |
Sets the Color for the effect. |
color GetColor() |
Returns the currently set Color. |
▪For a detailed description of the non-primitive data type color, see »Using Data Types
▪Learn more »List Of Global Variables And Constants
This macro example sets a random generated color each time the effect is started.
@scriptname="";
@author="";
@version="";
@description="";
void InitEffect()
{
color c;
c.r = random(0,255);
c.g = random(0,255);
c.b = random(0,255);
c.w = 0;
c.a = 0;
SetColor(c);
}
void PreRenderEffect()
{
}
void PostRenderEffect()
{
}
void MatrixSizeChanged()
{
InitEffect();
}
| MADRIX 3.23. |
| [Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100% |
|
Previous Next
|
|
Enable Automatic Translation | Activer La Traduction Automatique | 启用自动翻译 |