Logic Machine Forum
Background color depends on the Value - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Background color depends on the Value (/showthread.php?tid=3946)



Background color depends on the Value - Fahd - 22.03.2022

Hello Guys,

Please, I hope you could help me with that, I have no knowledge with Java or CSS

I want to change the background color of Temp Value depending on the Value itself, for example, if the Value is >= 25 then the background color should be Red if it is between 21 and 24.5 then orange and if it's below then blue.

Many thanks in advance


RE: Background color depends on the Value - admin - 22.03.2022

See this: https://forum.logicmachine.net/showthread.php?tid=1976&pid=20292#pid20292


RE: Background color depends on the Value - stemic01 - 29.03.2022

I am not sure if it 100% relevant for your question but it works fine for my setup giving different background colors related to values.
I use the Object "Additional icons" button where you can specify different values and assign corresponding PNGs to it. So I have pre-made some few PNGs in different colors which will change on different values. Very simple setup.