Bar with different layout

Description

How can we change the bar graphic?
What are possibilities like you see in futuristic bike example.
Of course not from squareline but by coding.

What MCU/Processor/Board and compiler are you using?

esp32

What LVGL version are you using?

8.3.4

What do you want to achieve?

To be able to change the shape of a progress bar. Lets say that the futuristic demo with the battery section is great. But what is the logic behind in code.