API Reference > imodeljs-common > Symbology > RgbColor > fromColorDef fromColorDef MethodStatic Constructs from the red, green, and blue components of a ColorDef. The alpha component is ignored. fromColorDef(colorDef: ColorDef): RgbColor Parameter Type Description colorDef ColorDef Returns - RgbColor Defined in core/common/src/ColorDef.ts Line 685 Last Updated: 13 June, 2024