@companion-module/base
    Preparing search index...

    Function combineRgb

    • Combine separate RGB component to one single numerical value. The RGB component have to be in a range of 0-255. There can also be an alpha component in a range of 0.0-1.0 (0 = transparent).

      Note: Companion's components can use any CSS color string and you should prefer these strings. E.g.for a button style you can also use '#ff8800' or 'rgb(255, 128, 0)' without calling a function.

      defaultStyle: {
      bgcolor: combineRgb(255, 0, 0),
      color: combineRgb(255, 255, 255),
      }

      Parameters

      • r: number
      • g: number
      • b: number
      • Optionala: number

      Returns number