diff --git a/src/components/MenuCellProperties.vue b/src/components/MenuCellProperties.vue index b8e42cc..85ee317 100644 --- a/src/components/MenuCellProperties.vue +++ b/src/components/MenuCellProperties.vue @@ -6,7 +6,7 @@ @@ -19,6 +19,9 @@ @input="updateCellProperties" /> +
+ Switch Colors +
@@ -58,6 +61,17 @@ this.setBoardWidth(); this.setBoardHeight(); }, + switchColor() { + [this.cellProperties["liveColor"], this.cellProperties["deadColor"]] = [ + this.cellProperties["deadColor"], + this.cellProperties["liveColor"], + ]; + }, }, }; +