Remove unnecessary pattern parameters

This commit is contained in:
Unknown 2018-10-18 09:57:08 +02:00
parent 6d7120650f
commit bac65ef116
2 changed files with 6 additions and 25 deletions

View file

@ -124,20 +124,8 @@ class Engine {
if (canvas != null) _grid.render(canvas, interp);
}
void addPattern(
{CellPattern pattern,
int x,
int y,
int amount,
int dispersal,
int seed}) {
_grid.addPattern(
pattern: pattern,
x: x,
y: y,
amount: amount,
dispersal: dispersal,
seed: seed);
void addPattern({int amount, int dispersal}) {
_grid.addPattern(amount: amount, dispersal: dispersal);
}
void toggleEdgeRendering() {