Methods
Object
setColor
applies a color to the specified objects example usage const objectids = \["object 1", "object 2"]; const color = "red"; viewer2d setcolor(objectids, color); const objectids = \["object 1", "object 2"]; const color = "#ff0000"; viewer2d setcolor(objectids, color); const objectids = \["object 1", "object 2"]; const color = "rgba(255, 0, 0, 1)"; viewer2d setcolor(objectids, color); parameters objectids ids of the objects to apply color to type required array\[string] yes color any valid css rgb value type required string yes