`prev Menu next`

Transform assignment
An arbitrary multiplication of 4×4 matrices or transform functions can be written on the right side of a MAT statement.
Example.
`DIM a(4,4)
MAT a=SHIFT(1,0)*SHEAR(pi/6)*SCALE(0.8)
`
Inside of a picture definition, the reserved keyword TRANSFORM means the current transform matrix.
EXAMPLE

    10 DIM a(4,4)
    20 DRAW a_pict WITH ROTATE(PI/6)
    30 PICTURE a_pict
    40    MAT A=TRANSFORM
    50    MAT PRINT A
    60 END PICTURE
    70 END