createEmptyGraphic(config) {
return new Graphics();
+ },
+
+ /**
+ * Creates a harness graphic
+ *
+ * @function createHarness
+ * @memberof PixiFactory
+ * @return {external:CreateJs.Container} the created container
+ */
+ createHarness(config) {
+
+ const radius = config.radius;
+
+ const lineThickness = 10;
+
+ // The body
+ const body = new Graphics();
+ body.lineStyle(lineThickness, 0xe1e1e1, 1)
+ .drawCircle(0, 0, radius);
+
+ const center = new Graphics();
+ center.beginFill(0xf1f1f1)
+ .drawCircle(0, 0, radius - lineThickness / 2)
+ .endFill();
+
+ body.addChild(center);
+
+ return body;
}
};