API Reference > imodeljs-common > Symbology > ColorDef > setAlpha setAlpha Method Change the alpha value for this ColorDef. setAlpha(alpha: number): void Parameter Type Description alpha number the new alpha value. Must be between 0-255. Returns - void Defined in core/common/src/ColorDef.ts Line 332 Last Updated: 13 June, 2024