fromColor
Creates a new ColorGeometryInstanceAttribute instance given the provided Color.
const instance = new GeometryInstance({
geometry : geometry,
attributes : {
color : fromColor(Color.CORNFLOWERBLUE),
}
});
Content copied to clipboard
Return
The new ColorGeometryInstanceAttribute instance.
Parameters
color
The color.