FACER Community

Blinking colon in sync with seconds

Hi guys, I was designing a digital watch and wanted the ‘:’ seperator between Hours and Minutes to blink according to seconds like most traditional watches do.

I did attempt to find a solution for this in the forums but to no avail (maybe I suck at using the correct key words?). The closest expression I could get was:
#Db# $floor(#DNOW#/1000)%2=0?100:0$ #DmZ#
in which the ‘100’ and ‘0’ (in the expression 100:0) will switch every second.
For eg. 10:59 > 10 59 > 10:59 > 10 59

However as I found out quite quickly ‘:’ cannot be an element by itself as the symbol is used in the code as an expression. Also a space to denote blank cannot be an expression by itself too.

Any idea what other expression I can use to single out ‘:’ and ’ ’ as the element I want blinking?

2 Likes

Welcome @deenz You have exactly the correct expresion there.

$floor(#DNOW#/1000)%2=0?100:0$

So have the Hrs and min only on one layer with one space between them.

Your : Colin/Colon must be on a seperate layer. The expression must be in the Opacity Tag of that layer. It is a bit fiddely getting the Colin in the right pkace but well worth the effort. If you get this and are intrested in a fading flash stay in touch.

3 Likes

Hi Russell,

thank you for your comment. Your suggestion is definitely the same as my train of thought since I have tried that! :grinning:

However the issue is that space between hour and minute will shift according to the width of the number. For eg.:
12 59
8 11
have different widths. The 2 (in 12 59) will shift too much to the left and 5 will touch the colon. The 8 (in 8 11) will shift too much to the right and will touch the colon.

Looks like Facer needs to introduce an expression that allows usage of : as an element.

1 Like

Yeah. You are getting there sorry. Some Fonts are Fixed width. I split the Hrs and Min on to seperare layers Left and Right justified. I am in a car at the moment. Stick with us you are getting there.

1 Like

I managed to do it with your suggestion - ‘I split the Hrs and Min on to seperare layers Left and Right justified.’
I used 2 fullstops instead of colon as : can’t be used.
Expression looks like this:
$floor(#DNOW#/1000)%2=0?.: $

Thank you Russell!

2 Likes

Ha Ha. Well thay is a way round. I am sorry I did not make it clear that you put your Colin in the text Field of the Flashing layer. It is so difficult to make a snap desision of how much someone Knows . On the other hand a bit patronising to assume they know nothing. What you will enjoy I am sure is that there are many ways to do anything on Facer.
I am not sure if putting : inside " " or { } works. I will have a look when I get on my Laptop.

1 Like

Since you have a split Colin have the two dots flash altenately. Swap your conditional 0 for 1.:grinning:

1 Like

That’s an idea!
Or even have them alternate in different colors or opacities!

1 Like

Oh Yeah you got it. And two months down the line you make the simplest possible face you could imagine.
BTW I love the Faces you have Published so Far . It is quite easy to spot if someone has a bit of STYLE.
If I follw you I will get to see your Next. Enjoy.

When I get home I will post you Phasing Flasing Formula. Then you can try Zooming stuff. You will Love that.

Looks like you have a flashing Colin on you Kindle Watch already or did you just update it ?

1 Like

I’ve always used the same for a Seconds Flasher, just 1 number change -
$floor(#DNOW#/500)%2=0?100:0$

3 Likes

Thank you!
I updated it after your suggestion.
It was not flashing before.
:grin:

1 Like

Here is a Little test to show what I meant by alternating by changing the 0 to 1 .
Also a little sample of a fader to play with . The size number s a half as the sin rad thing gives you -1 to 1 so your number gets doubled .

Just slipped in Gizmo’s Flasher . Sadly we can do nothing with the Opacity or Tinting of a Sequence but lots of fun to be had . Please Inspect some of my work . I am not a fan of Sequences / Animation but I did a couple recently just to get to know what goes on there .

Enjoy .

1 Like

Could you not use $#Ds#%2=0?100:0$?

1 Like

Hi Rob . I think the problem using #Ds# is you can only divide it by certain numbers . #DNOW# only sets to Zero Now and again . A couple of thousand years I think if you use the numbers below Zero which they do not . Any way I am off to test that because I hate talking S… :::)))

I’ve used ((round(#Dsm# - floor(#Dsm#)))*100) for the blinking colon.

3 Likes

Oh Yes . Thanks for showing us your WIP . These Topics grow to become good Reference . Please keep up your contribution . This is exactly what this community is all about .

2 Likes

I’ve been using ((floor(((#Dsm#)-(floor(#Dsm#))) * 2)) * 75) for all my flashing colons for a long time now. I have no idea who came up with that originally, but I found it here in the community.

4 Likes

Its all here . Just finding it . MAG I am looking for your test with all the different second hand ticks . I want to show someone the lurching one. :::)))

1 Like

Hi may I know where in that expression do I put the colon?

I use two colons one layer above the other. You use the expression as an Opacity tag in the Opacity box. Leave the bottom layer the color you are using for your time font with 100% opacity. In the top layer set the font color to a lighter or darker color and add the coding for the flash into the Opacity box. You can then change the opacity number (* 75) larger to make it darker or less to make it more see through.

2 Likes