fromColor

Creates a new ColorGeometryInstanceAttribute instance given the provided Color.

const instance = new GeometryInstance({
geometry : geometry,
attributes : {
color : fromColor(Color.CORNFLOWERBLUE),
}
});

Return

The new ColorGeometryInstanceAttribute instance.

Parameters

color

The color.

See also