Author Topic: Colored box based on analog value  (Read 426 times)

Mvlawn

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Colored box based on analog value
« on: November 16, 2023, 08:53:54 AM »
I am looking for 2 color filled shape to change colors based on what the analog value is. How can I get this done?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Colored box based on analog value
« Reply #1 on: November 16, 2023, 09:28:42 AM »
Two hacks come to mind:

1) AnalogValueDisplay - Use a full block character to give appearance of filled shape

2) AnalogVisibilityController - Add to Labels each with a different background color. Use AnalogVisibilityController to control which one shows

Mvlawn

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: Colored box based on analog value
« Reply #2 on: November 16, 2023, 01:04:56 PM »
Thanks Archie!