# Line (/examples/widgets/line)



Styled polyline through five points [#styled-polyline-through-five-points]

<LvglExampleBrief>
  Draw a rounded blue polyline through five fixed coordinates.
</LvglExampleBrief>

A static array of five `lv_point_precise_t` coordinates defines the
polyline. An `lv_style_t` sets `line_width` to 8, `line_color` to
`lv_palette_main(LV_PALETTE_BLUE)`, and `line_rounded` to true.
`lv_line_create` and `lv_line_set_points` build the shape on the
active screen, the style is attached, and the line is centered.

<LvglExample name="lv_example_line_1" path="widgets/line/lv_example_line_1" />
