Hey there,
i would like to have a picture on my watch screen with the size
width and height 30 Units
increasing in 3s to 80 Units
decreasing in 7s to 30 Units
increasing in 3s to 80 Units

I want to use it as some kind of breath assistance, so it’s 3 seconds breath in, 7 seconds breath out.

I found ((sin(#DWE#*0.8)*30)+60)
That get’s me roughly the desired sizes in an ~10 second circle, but it’s 5 seconds increase, 5 seconds decrease.

Can someone please hlp me with the correct formula for a 30/70 cycle?
Also I’d like to know if there is a possibility to have “pulsating” on in Dim-mode?

2 Likes

Hi @schoggi Welcome

This is one of my favourites give here on the community .
Have a play with it .
Obviously you have to try it in The Width Height and Opacity Tags to see what it does .

`(50+((sin(rad((#DWFSS#)*120)))*50))`

50 50 is the range in this case it gives 0-100 in half a second . so 25 25 will give you 0 to 50 .Play with the 120 number . 120 is fast 60 is a second 30 is two seconds etc .
Let us know how you get on .

4 Likes

As far as I am aware dim mode is very static, no movement possible.

2 Likes

Exactly . But sometimes a little tweak to opacity can add a dimension to a live animation gig especially if it is heart rate .

Hey Russel,
thanks a lot for your help.
I don’t yet see how to reach a non mirrored curve, but as it didn’t yet occur to me to use it for opacity, I layered 2 identical objects and played with amplitude and time shift.
Think for my requirements that will do. =)
Thanks a very lot!

2 Likes

Hey listen @schoggi . Sorry I offered a rather simplistic answer . The problem is quite complex . I have made you a test that fills the bill but it is a Liner solution and split into two . I like to help if I can but I am not a Maths Master . You might find something of use in there . I think the Lungs are a little macabre . I offer you a nice glow perhaps that will represent the breathing better . I would flip the colour on the change over . Simple enough if you have separate layers .
.
.
.

.
.
.

1 Like

To use the sine or cosine function, you would have to start at the middle size so it can give positive and negative results which then either add or substract to the middle size.
And you would also need to split the formula in two stages, faster and slower. Maybe like this:
`\$#DWE#%10<3?55+25*cos(((#DWE#%10)/3-1)*3.14):55+25*cos(((#DWE#%10-3)/7)*3.14)\$`

4 Likes

Master Class. I like your short form pi. Good habit since some platforms don’t have it as a constant. Thank yo very much for giving us a good reason to bookmark this.

2 Likes

You can add even further decimal places, but for what it has to do here, I doubt it would change the results visibly.

2 Likes

The Ancients used pi as 3 for thousands of years. They had a good understanding that it was near enough. Have a Great Christmas.

1 Like

@petruuccios . I know you have nothing to do over the Festive season and it is more of a question really . I have a breathing exercise where the times are 3 in 6 hold and 12 out . Some use a Box Breathing Technique say 3 in , 3 hold , 3out , 3 hold . It would be wonderful if we had access to the buzzer in the watches . I know Facer has three or four Lap timers that could be used for settings . Any way I am not asking you to do this work but just ask you how you would split it up . All the best for the Season again and thanks for ther Gifts you Keep Giving .

1 Like

Here is a bag of bits . Sorry it is a bit of a Jumble .
Happy Christmas Everyone .
.
.
.

.
.
.
Box breathing mask Resources . To cover arc progress . See test for Fill formula .
.
.
.

.
.
.

1 Like

Hey Russel,

wow, that’s genius! Thanks a lot
I took the 3sec in/7sec out lungs, only I adapted it to a Lotus flower

Thanks a very lot, that’s exactly what I wanted!

2 Likes

Lotus flower is brilliant Idea. Plesse credit Peter @petruuccios . It was his Formula. The man is a genius. He does not make many Faces . Don’t miss one.

1 Like

Then Multi thanks to @petruuccios as well =)

1 Like