X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/1676911c8a2621274bf75ff7271faa926cf58d6c..3100e0533cb89a185ea021dfb83c4f364750180f:/lib/factories/pixi.js diff --git a/lib/factories/pixi.js b/lib/factories/pixi.js index f941ffe..077c5b4 100644 --- a/lib/factories/pixi.js +++ b/lib/factories/pixi.js @@ -19,10 +19,11 @@ export default { createSumo(config) { const radius = config.radius; + const sumoColor = config.color || 0x87c5ea; // The body const body = new Graphics(); - body.beginFill(0x87c5ea) + body.beginFill(sumoColor) .drawCircle(0, 0, radius) .endFill();