X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/0616b3f00653c66b5e34814653e33413b9ec034e..f45bcde17fe0a8849e647ac843106fb51d2e8971:/lib/factories/pixi.js?ds=inline diff --git a/lib/factories/pixi.js b/lib/factories/pixi.js index e3c1b5a..851a074 100644 --- a/lib/factories/pixi.js +++ b/lib/factories/pixi.js @@ -16,9 +16,9 @@ export default { * @memberof PixiFactory * @return {external:CreateJs.Container} the created container */ - createSumo() { + createSumo(config) { - const radius = 25; + const radius = config.radius; // The body const body = new Graphics(); @@ -61,6 +61,18 @@ export default { body.addChild(rightPupil); return body; + }, + + /** + * Creates an empty graphic + * + * @function createEmptyGraphic + * @memberof PixiFactory + * @return {external:CreateJs.Container} the created container + */ + createEmptyGraphic(config) { + + return new Graphics(); } };