1# Create an array for the points of the line 2line_points = [ {"x":5, "y":5}, 3 {"x":70, "y":70}, 4 {"x":120, "y":10}, 5 {"x":180, "y":60}, 6 {"x":240, "y":10}] 7 8# Create style 9style_line = lv.style_t() 10style_line.init() 11style_line.set_line_width(8) 12style_line.set_line_color(lv.palette_main(lv.PALETTE.BLUE)) 13style_line.set_line_rounded(True) 14 15# Create a line and apply the new style 16line1 = lv.line(lv.scr_act()) 17line1.set_points(line_points, 5) # Set the points 18line1.add_style(style_line, 0) 19line1.center() 20 21