acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

lv_example_style_9.py (384B)

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