Skip to content
Alex Mayer edited this page Apr 15, 2026 · 8 revisions

This was added to the API in version 0.90.

trib(x1, y1, x2, y2, x3, y3, color)

Parameters

  • x1, y1 : the coordinates of the first vertex
  • x2, y2 : the coordinates of the second vertex
  • x3, y3 : the coordinates of the third vertex
  • color: the index of the desired color in the current palette

Description

This function draws a triangle with color, using the supplied vertices. But unlike tri, trib only draws an outline (border).

Clone this wiki locally