/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
import { RGBAi } from "@vertexvis/scene-view-protos/core/protos/material_pb";
import { Color } from "@vertexvis/utils";
export function makeRGBAi(color = Color.create(255, 255, 255)) {
    const effectiveColor = typeof color === 'string' ? Color.fromHexString(color) : color;
    const c = new RGBAi();
    if (effectiveColor != null) {
        c.setR(effectiveColor.r);
        c.setG(effectiveColor.g);
        c.setB(effectiveColor.b);
        c.setA(effectiveColor.a);
    }
    return c;
}
//# sourceMappingURL=colors.js.map
