Make Battery animation

i was curious on how i can make an image at 100% . at 100% there is no image until it goes to 99%

Could you please explain more? I can’t get you.

See Ternary Operations their is an example of using Battery Percent changing an image opacity there.
([BATT_PER] < 100) ? 100 : 0

Ron
Samsung Developer Relations

Okay, to go further: How do I have an images opacity tied directly to the battery percentage?

EXAMPLE

  • Battery @100% = Image at 100% Opacity
  • Battery @50% = Image at 50% Opacity
  • Battery @0% = Image at 0% Opacity

Basically, I just need code that says: OPACITY = [BATT_PER]

… and where would that code/tag go?

Thanks @r.liechty_SDR

In GWD it used to say opacity and have triangle for the tag it is simpler in WFS
For your image properties Color right next to it is 100 % click on the box and Tags shows up click on Tags and enter [BATT_PER] (or scroll down and find the [BATT_PER] tag and tap on it.
It will show 100 + [BATT_PER] in the tags
Click done
then change 100 to 0 in the box

One great feature of WFS now when you change the run settings the opacity will show in small numbers above the opacity box.

Almost all the properties’ boxes allow you to use tags. Even Text but you need to put a () around the tags so it reads as a number in a text.

The tutorial for WFS is hosted on the Wear OS site. But it is not as well documented as the GWS one was after 10 years of polishing.

Ron
Samsung Developer Relations