SET MATRIX TILE This command will texture an individual grid square with an image specified by the tile number.
Syntax
    SET MATRIX TILE Matrix Number, TileX, TileZ, Tile Number
Parameters
    Matrix Number
Integer The matrix number
    TileX
Integer The tile x number equates to a portion of graphic within the sectioned image you used to prepare the matrix texture
    TileZ
Integer The tile y number equates to a portion of graphic within the sectioned image you used to prepare the matrix texture
    Tile Number
Integer The tile number equates to a portion of graphic within the sectioned image you used to prepare the matrix texture
Returns
This command does not return a value.
Description
Only if the matrix has been prepared with a texture will this command work. The tile number equates to a portion of graphic within the sectioned image you used to prepare the matrix texture. If you had prepared a matrix texture with four segmented images, you would reference these images as tile numbers from 1 to 4. The parameters should be integer values. Remember to call UPDATE MATRIX when complete to instruct the matrix to update visually.
Example Code
    ink rgb(0,255,0),0

    box 1,1,51,51

    ink rgb(255,0,0),0

    box 51,1,101,51

    ink rgb(0,255,0),0

    box 1,51,51,101

    ink rgb(0,255,0),0

    box 51,51,101,101

    get image 1,0,0,101,101

    make matrix 1,1000,1000,25,25

    prepare matrix texture 1,1,4,4

    position matrix 1,0,0,0

    set matrix tile 1,2,2,2

    update matrix 1

    do

    loop

    if matrix exist(1)=1 then delete matrix 1

    end
See also
MATRIX Commands Menu Index