From 3676264444178162bb7c514dafc6b516f6b74e70 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 8 Jul 2018 19:05:11 +0200 Subject: [PATCH] dartfmt --- lib/src/Grid.dart | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/src/Grid.dart b/lib/src/Grid.dart index c8287f1..a25a50e 100644 --- a/lib/src/Grid.dart +++ b/lib/src/Grid.dart @@ -32,7 +32,14 @@ class Grid { void reset() { map.setAll(0, _buildGrid(w, h)); - if(_startingSeed != null) addPattern(pattern: _pattern, dispersal: _dispersal,amount: _amount,seed: _startingSeed, x: _x, y: _y); + if (_startingSeed != null) + addPattern( + pattern: _pattern, + dispersal: _dispersal, + amount: _amount, + seed: _startingSeed, + x: _x, + y: _y); _dirty = true; } @@ -81,7 +88,7 @@ class Grid { ? i-- : setCellState(cx + rng.nextInt(_dispersal), cy + rng.nextInt(_dispersal), true); - if (sanityCheck > 100 && sanityCheck > i*3) break; + if (sanityCheck > 100 && sanityCheck > i * 3) break; } break; } @@ -180,7 +187,7 @@ class Grid { for (int y = 0; y < map.length; y++) { for (int x = 0; x < map[y].length; x++) { - if(_renderEdges) { + if (_renderEdges) { ctx.setStrokeColorRgb(100, 100, 100); ctx.strokeRect(x * brickW, y * brickH, brickW, brickH); }