Draw Shapes |
Previous Next |
Overview▪MADRIX Script provides powerful functions to draw shapes onto the matrix. ▪You can either use absolute pixel values or you can use relative vector values. ▪These functions can be used for 2D as well as 3D.
Functions▪void DrawPixelShape(color col, int shape, int x, int y, int z,
color col - Is of the data type structure and defines a color for the shape. »Using Data Types int shape - Is of the data type integer and defines the type of shape. See below for a list of Shape Type constants. int x - Is of the data type integer and defines the X-coordinate (left). int y - Is of the data type integer and defines the Y-coordinate (top). int z - Is of the data type integer and defines the Z-coordinate (front). int w - Is of the data type integer and defines the width of the shape. int h - Is of the data type integer and defines the height of the shape. int d - Is of the data type integer and defines the depth of the shape. int lineWidth - Is of the data type integer and defines the width of the shapes' border. This is not supported by all shapes. See below for a list of supported shapes and modes. int drawMode - Is of the data type integer and defines the Draw Mode. See below for a list of Draw Mode constants. int lookAtType - Is of the data type integer and defines the Look-At Type. See below for a list of Look-At Type Constants.
▪void DrawVectorShape(color col, int shape, float x, float y, float z, int shape - Is of the data type integer and defines the type of shape. See below for a list of Shape Type constants. float x - Is of the data type float and defines the X-coordinate relative to the matrix size (left). float y - Is of the data type float and defines the Y-coordinate relative to the matrix size (top). float z - Is of the data type float and defines the Z-coordinate relative to the matrix size (front). float w - Is of the data type float and defines the width of the shape relative to the matrix size. float h - Is of the data type float and defines the height of the shape relative to the matrix size. float d - Is of the data type float and defines the depth of the shape relative to the matrix size. int lineWidth - Is of the data type integer and defines the width of the shapes' border. This is not supported by all shapes. See below for a list of supported shapes and modes. int drawMode - Is of the data type integer and defines the Draw Mode. See below for a list of Draw Mode constants. int lookAtType - Is of the data type integer and defines the Look-At Type. See below for a list of Look-At Type Constants.
- Valid values for relative float values range from 0.0 to 1.0.
Shape Type Constants
Draw Mode Constants
Look-At Type Constants
|
MADRIX Version: 5.7 | Script Version: 3.23 |
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100% |
Previous
Next
|
Enable automatic translation | Activer la traduction automatique | |