You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
251 B
Python
14 lines
251 B
Python
2 years ago
|
#
|
||
|
# Using the Arc style properties
|
||
|
#
|
||
|
style = lv.style_t()
|
||
|
style.init()
|
||
|
|
||
|
style.set_arc_color(lv.palette_main(lv.PALETTE.RED))
|
||
|
style.set_arc_width(4)
|
||
|
|
||
|
# Create an object with the new style
|
||
|
obj = lv.arc(lv.scr_act())
|
||
|
obj.add_style(style, 0)
|
||
|
obj.center()
|