lvgl.triangle

Display a filled triangle.

Syntax

lvgl.triangle([parent], {settings})

parent:triangle({settings})

Parameters

See the API page for parameter description and common settings.

The 'x, 'y, 'w' and 'h' settings are not used.

Triangle specific settings:

Return values

LVGL object

Notes

Unlike the line drawing objects, there is no built in triangle drawing in LVGL. The method used to draw triangles is quite simple and does not do any anti-aliasing.

API Status

Change log