1#
2# Using the line style properties
3#
4
5style = lv.style_t()
6style.init()
7
8style.set_line_color(lv.palette_main(lv.PALETTE.GREY))
9style.set_line_width(6)
10style.set_line_rounded(True)
11
12# Create an object with the new style
13obj = lv.line(lv.scr_act())
14obj.add_style(style, 0)
15p =  [ {"x":10, "y":30},
16       {"x":30, "y":50},
17       {"x":100, "y":0}]
18
19obj.set_points(p, 3)
20
21obj.center()
22