Using M2L Color Table |
Print Previous Next |
Functions Provided For Using The M2L Color Table Some effects provide more than one color. In this case the so-called »Using Color Table, »Using Color Gradient, »Using Color Gradient Dialog or M2L Color Table (described here) is offered by the effect to take control of the colors.
The following table provides an overview of all functions the effect can use to modify the colors in a M2L Color Table:
Remarks Not every function might be available for each MADRIX Effect. Therefore, the functions M2LColorTableSetColorFade, M2LColorTableGetColorFade and M2LColorTableToggleColorFade are only available, if the effect offers Fade Mode.
M2L Color Table Preset Constants
MADRIX 2.X To MADRIX 3.X Migration Hints The following functions and constants are not supported anymore. Please follow the hints to migrate your macros.
Example This example sets the M2L Color Table preset C1 and sets the last 12 colors to color black. @scriptname=""; @author=""; @version=""; @description="";
void InitEffect() { //Set Preset C1 M2LColorTableSetPreset(M2L_COLORTABLE_PRESET_C1);
//Sets the last 12 colors to black for(int i=12;i<24;i++) M2LColorTableSetColor(i,BLACK); }
void PreRenderEffect() {
}
void PostRenderEffect() {
}
void MatrixSizeChanged() { InitEffect(); }
|
MADRIX Version: 3.6j | Script Version: 2.22 |
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100% |
Print Previous Next |