API Reference > imodeljs-common > Symbology > ColorDef > withAlpha withAlpha MethodStatic Return a color equivalent to the specified 0xTTBBGGRR but with modified alpha component. withAlpha(tbgr: number, alpha: number): number Parameter Type Description tbgr number alpha number the new alpha value as an integer between 0-255. Returns - number The 0xTTBBGGRR value equivalent to tbgr but with the specified alpha. Defined in core/common/src/ColorDef.ts Line 287 Last Updated: 11 June, 2024