API Reference > imodeljs-common > Symbology > ColorDef > computeTbgrFromComponents computeTbgrFromComponents MethodStatic Compute the 0xTTBBGGRR value corresponding to the specified Red, Green, Blue, Transparency components. All inputs should be integers between 0-255. computeTbgrFromComponents(red: number, green: number, blue: number, transparency?: number): number Parameter Type Description red number green number blue number transparency number Returns - number Defined in core/common/src/ColorDef.ts Line 92 Last Updated: 11 June, 2024