Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color Range does not work on apex pro tkl #112

Open
willin opened this issue May 15, 2021 · 0 comments
Open

Color Range does not work on apex pro tkl #112

willin opened this issue May 15, 2021 · 0 comments

Comments

@willin
Copy link

willin commented May 15, 2021

Errored Event:

{
    game: 'V0',
    event: 'CPU',
    min_value: 0,
    max_value: 100,
    icon_id: 27,
    handlers: [
      {
        'device-type': 'keyboard',
        zone: 'function-keys',
        color: [
          {
            low: 0,
            high: 10,
            color: {
              red: 0,
              green: 255,
              blue: 0
            }
          },
          {
            low: 11,
            high: 100,
            color: {
              gradient: {
                zero: {
                  red:0,
                  green: 255,
                  blue: 0
                },
                hundred: {
                  red: 255,
                  green: 0,
                  blue: 0
                }
              }
            }
          }
        ],
        mode: 'percent'
      }
    ]
  }

when use this above, always only show F1 on.

but works this way:

{
  game: 'V0',
  event: 'CPU',
  min_value: 0,
  max_value: 100,
  icon_id: 27,
  handlers: [
    {
      'device-type': 'keyboard',
      zone: 'function-keys',
      color: {
        gradient: {
          zero: {
            red: 0,
            green: 0,
            blue: 255
          },
          hundred: {
            red: 255,
            green: 0,
            blue: 0
          }
        }
      },
      mode: 'percent'
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant