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_obj_1.py (368B)

      1 obj1 = lv.obj(lv.scr_act())
      2 obj1.set_size(100, 50)
      3 obj1.align(lv.ALIGN.CENTER, -60, -30)
      4 
      5 style_shadow = lv.style_t()
      6 style_shadow.init()
      7 style_shadow.set_shadow_width(10)
      8 style_shadow.set_shadow_spread(5)
      9 style_shadow.set_shadow_color(lv.palette_main(lv.PALETTE.BLUE))
     10 
     11 obj2 = lv.obj(lv.scr_act())
     12 obj2.add_style(style_shadow, 0)
     13 obj2.align(lv.ALIGN.CENTER, 60, 30)
     14