App Developper active gradient change

Discuss PC Developer and Web Developer projects and features here.
Post Reply
stefan.erni
Valued Contributor
Posts: 1167
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 221 times
Been thanked: 239 times

App Developper active gradient change

Post by stefan.erni »

Hi to All

I have various thermal sensors on a plate. I would like to change the gradient depending on the measured value in real time.
How can I do this?

2025-11-05_15-30-31.PNG
2025-11-05_15-30-31.PNG (27.71 KiB) Viewed 1127 times
2025-11-05_15-34-01.PNG
2025-11-05_15-34-01.PNG (32.31 KiB) Viewed 1127 times
I tried it but it didn't work active.
FC11_gradient_active_PC Project.fcpcd
(10.68 KiB) Downloaded 125 times

Steve-Matrix
Matrix Staff
Posts: 1769
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 258 times
Been thanked: 413 times

Re: App Developper active gradient change

Post by Steve-Matrix »

The property value takes a string variable, but I think if this is a number then it may have to be a decimal number (i.e. instead of "FF" you should use "255").

Also, if you just want to change one side of the gradient, consider the "SetColor" function instead of "SetProperty" as that gives more control.

See attached.
Attachments
FC11_gradient_ST.fcpcd
(11.06 KiB) Downloaded 98 times

stefan.erni
Valued Contributor
Posts: 1167
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 221 times
Been thanked: 239 times

Re: App Developper active gradient change

Post by stefan.erni »

Hi Steve

It's working nice.
Only the flame is red on the outside and blue on the inside.
It should be the other way around. But I'll try to fix that.
Here the result:
2025-11-06_14-59-16.PNG
2025-11-06_14-59-16.PNG (55.2 KiB) Viewed 1093 times
I suspect the string is not hex..
2025-11-06_15-09-45.PNG
2025-11-06_15-09-45.PNG (31.03 KiB) Viewed 1093 times

program for gradient
Attachments
FC11_gradient_post2.fcpcd
(19.5 KiB) Downloaded 93 times

Post Reply