Using Color Controls

   Print  Previous  Next

Functions Provided For Using Colors

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:



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.






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;





void PreRenderEffect()





void PostRenderEffect()





void MatrixSizeChanged()





MADRIX Version: 3.6j | Script Version: 2.22
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100%
Print   Previous   Next