setObjectColors
Applies a color to the specified objects.
Example
Usage
const objectIds = ["object-1", "object-2"];
const color = "red";
viewer3d.setObjectColors(objectIds, color);Parameters
objectIds
List of object ids to apply the color to.
Type | Required |
|---|---|
Array[String] | Yes |
color
Color to apply.
Value provided must be compatible with THREE.Color.
Type | Required |
|---|---|
String or Number | Yes |