setTransparency Method

Change the transparency value for this ColorDef

setTransparency(transparency: number): void

Parameter Type Description
transparency number the new transparency value. Must be between 0-255, where 0 means 'fully opaque' and 255 means 'fully transparent'.

Returns - void

Defined in

Last Updated: 13 June, 2024