Files
Foundry-VTT-Docker/resources/app/node_modules/@pixi/graphics/lib/styles/FillStyle.js
2025-01-04 00:34:03 +01:00

23 lines
766 B
JavaScript

"use strict";
var core = require("@pixi/core");
class FillStyle {
constructor() {
this.color = 16777215, this.alpha = 1, this.texture = core.Texture.WHITE, this.matrix = null, this.visible = !1, this.reset();
}
/** Clones the object */
clone() {
const obj = new FillStyle();
return obj.color = this.color, obj.alpha = this.alpha, obj.texture = this.texture, obj.matrix = this.matrix, obj.visible = this.visible, obj;
}
/** Reset */
reset() {
this.color = 16777215, this.alpha = 1, this.texture = core.Texture.WHITE, this.matrix = null, this.visible = !1;
}
/** Destroy and don't use after this. */
destroy() {
this.texture = null, this.matrix = null;
}
}
exports.FillStyle = FillStyle;
//# sourceMappingURL=FillStyle.js.map