Skip to content

lvgl.line

Syntax

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

parent:line({settings})

Parameters

See the API page for parameter description and common settings.

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

Line specific settings:

NameTypeDescriptionDefault if not set
roundedBooleanIf true then the end caps of the line are rounded.false
thicknessNumberSets the thickness of each line segment.1
opacityNumber or FunctionSets the opacity.
Note: range is 0 (transparent) to 255 (opaque)
255 (opaque)
pts

Table or Function

Table of points. Each point must be a table with two number values ({x, y})

Defines the points used to draw the line segments. There must be at least two points.nil

Return values

LVGL object

API Status

AvailStatusComment
BW radiosfalse
Color radiostrueactive

Change log

EdgeTX versionChange
2.11.0Introduced