API Reference > imodeljs-common > Symbology > ColorDef > clone clone Method Make a copy of this ColorDef. clone(result?: ColorDef): ColorDef Parameter Type Description result ColorDef If supplied, the supplied ColorDef will be modified to match this ColorDef and returned. Returns - ColorDef result if supplied; otherwise a new ColorDef equivalent to this one. Defined in core/common/src/ColorDef.ts Line 288 Last Updated: 13 June, 2024