UNPKG

@macrostrat/column-components

Version:

React rendering primitives for stratigraphic columns

14 lines (13 loc) 377 B
import Color from "../Color.js"; import type from "../utils/type.js"; Color.prototype.alpha = function(a, mutate = false) { if (a !== void 0 && type(a) === "number") { if (mutate) { this._rgb[3] = a; return this; } return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], "rgb"); } return this._rgb[3]; }; //# sourceMappingURL=alpha.js.map