TRIANGLE

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 CMM2

Syntax:
TRIANGLE X1, Y1, X2, Y2, X3, Y3 [, C [, FILL]]

Description:
Draws a triangle on the VGA monitor with the corners at X1, Y1 and X2, Y2 and X3, Y3. 
'C' is the colour of the triangle and defaults to the current foreground colour. 
'FILL' is the fill colour and defaults to no fill (it can also be set to -1 for no fill). 
All parameters can be expressed as arrays and the software will plot the number of triangles as determined by the dimensions of the smallest array. 
'x1', 'y1', 'x2', 'y2', 'x3',and 'y3' must all be arrays or all be single variables /constants otherwise an error will be generated 
'c' and 'fill' can be either arrays or single variables/constants.

 

Last edited: 05 October, 2020