Apply different colours to each digit

Hello! I’m creating a face watch displaying time in digital. I would like to apply different treatment to each digit. For instance if the time shows 15:37 I would the ‘1’, ‘5’, ‘:’, ‘3’ and the ‘7’ to all be of all different colours and transparency.

For the hours, I have tried deleting one of the letters in the tag ‘’#Db#’’, but it did not work.
Any suggestion?

thanks,
Vic.

1 Like

Hi. Only if you make each digit as a graphic file.

1 Like

Thanks for your answer!

Hello, did you mean each digit in like 22:22 being all one colour and 11:11 all other colour? or all different like this:

1 Like

(floor(#Db#/10)) = First Digit of the Hour

(#Db#-(10*(floor(#Db#/10)))) = Second Digit of the Hour

(floor(#DmZ#/10)) = First Digit of the Minute

(#DmZ#-(10*(floor(#DmZ#/10)))) = Second Digit of the Minute

2 Likes

Yes, like in your example.

Thank you so much! That works perfectly! :smiley:

(floor(#Db#/10)) = First Digit of the Hour
(#Db#-(10*(floor(#Db#/10)))) = Second Digit of the Hour
(floor(#DmZ#/10)) = First Digit of the Minute
(#DmZ#-(10*(floor(#DmZ#/10)))) = Second Digit of the Minute

The same expressions that @kumar.panda9 posted also works for seconds by changing every #DmZ# to #Ds#

1 Like

While you got it solved meanwhile, I would just like to add, that there are some little bit simpler options:
#DhZA# or #DkZA# direct tags for first digit of hours
#DhZB# or #DkZB# direct tags for second digit of hours (depending on which format do you prefer.)
(#Dm#%10) works for second digit of minutes too.

That is true, but if you use them you will loose the 12/24 hour ability. By using the above expression even if it is longer you keep 12/24 hour functionality.

Ok, but then the modulo function can be used even on #Db# tag, for the second hour digit like (#Db#%10).

2 Likes

That’s the nice thing about the way Facer (and math) is set up, there is more than one way to achieve the desired outcome.

3 Likes