DQBbgtri
SUB

Prototype

DECLARE SUB DQBbgtri (BYVAL Layer, BYVAL x1, BYVAL y1, BYVAL c1, BYVAL x2,
                      BYVAL y2, BYVAL c2, BYVAL x3, BYVAL y3, BYVAL c3)

Parameters

Layer - Layer where to draw the triangle

x1 - x coordinate of the first vertex

y1 - y coordinate of the first vertex

c1 - color of the first vertex

x2 - x coordinate of the second vertex

y2 - y coordinate of the second vertex

c2 - color of the second vertex

x3 - x coordinate of the third vertex

y3 - y coordinate of the third vertex

c3 - color of the third vertex

Returns

none

Description

Draws a gouraud-shaded triangle with (x1,y1), (x2,y2) and (x3,y3) as vertex, interpolating specified colors, using the current palette. Resulting colors are finally blended with the background, using the current blender map. DQBbgtri does not support transparency, but it's affected by the clipping box.

Notes:

Gouraud shading works better when you set a palette with lots of shades of the same color; it is up to you to find the best settings for your needs. Remember also to set an appropriate blender map to obtain best results; see also DQBtri, DQBbtri, DQBttri