]> git.r.bdr.sh - rbdr/sumo/blobdiff - lib/factories/pixi.js
Colorize the winner renderer
[rbdr/sumo] / lib / factories / pixi.js
index f941ffeba0dbec556874319db5c48b8f67e6a82f..077c5b4c41187f36af8d0794d1de29df44f00d1b 100644 (file)
@@ -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();