import t from "../../Color.js";
import m from "../../chroma.js";
import n from "../input.js";
import "../../utils/type.js";
import p from "../../utils/unpack.js";
n.format.gl = (...r) => {
  const o = p(r, "rgba");
  return o[0] *= 255, o[1] *= 255, o[2] *= 255, o;
};
const g = (...r) => new t(...r, "gl");
m.gl = g;
t.prototype.gl = function() {
  const r = this._rgb;
  return [r[0] / 255, r[1] / 255, r[2] / 255, r[3]];
};
export {
  g as gl
};
//# sourceMappingURL=index.js.map
