Tria, Tria draw a triangle – Quantum Data 802BT User Manual
Page 561

Video Test Generator User Guide
551
TRIA
draw a TRIAngle
Class
Custom image primitive
Description
Draws a triangle defined by its three end points. The primitive uses eight parameters. The
first is line color. The next three pairs of parameters are the x and y coordinates for the
three points. The last parameter is the fill. More complex filled polygons can be built up
using a series of joined filled triangles.
Command syntax
TRIA color x1 y1 x2 y2 x3 y3 fill
color
available colors
x1, y1, x2, y2, x3, y3
positive integer number
fill
available fill pattern
Other required
commands
The
command instructs the generator to use the new setting. The
command
updates hardware to the new setting and redraws the test image.
Example
TRIA red50 10 5 10 25 40 15 GrayPat50
// Draw a red50 triangle at x=10,
// y=5; x=10, y=25; x=40, y=15 with
// 50% active pixel fill
ALLU // Update hardware to current
// buffer contents