App Developper active gradient change

Discuss PC Developer and Web Developer projects and features here.
Post Reply
stefan.erni
Valued Contributor
Posts: 1112
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 211 times
Been thanked: 230 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 102 times
2025-11-05_15-34-01.PNG
2025-11-05_15-34-01.PNG (32.31 KiB) Viewed 102 times
I tried it but it didn't work active.
FC11_gradient_active_PC Project.fcpcd
(10.68 KiB) Downloaded 10 times

Steve-Matrix
Matrix Staff
Posts: 1630
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 227 times
Been thanked: 385 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 11 times

stefan.erni
Valued Contributor
Posts: 1112
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 211 times
Been thanked: 230 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 68 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 68 times

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

Post Reply