API Reference > imodeljs-common > Symbology > ColorDef > from from MethodStatic Create a ColorDef from Red, Green, Blue, Transparency values. All inputs should be integers between 0-255. from(red: number, green: number, blue: number, transparency?: number): ColorDef Parameter Type Description red number green number blue number transparency number Returns - ColorDef Defined in core/common/src/ColorDef.ts Line 87 Last Updated: 11 June, 2024