Rename Simulation function adding random patterns
Rename from addPattern to addRandomPattern to more clearly signify its purpose.
This commit is contained in:
parent
f1399064a2
commit
4f92c69a82
2 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ class Engine {
|
|||
_simulation = Simulation(x, y);
|
||||
|
||||
_elapsed.start();
|
||||
_simulation.addPattern(amount: 15, dispersal: 5);
|
||||
_simulation.addRandomPattern(amount: 15, dispersal: 5);
|
||||
html.window.animationFrame.then(animFrame);
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +129,7 @@ class Engine {
|
|||
}
|
||||
|
||||
void addPattern({int amount, int dispersal}) {
|
||||
_simulation.addPattern(amount: amount, dispersal: dispersal);
|
||||
_simulation.addRandomPattern(amount: amount, dispersal: dispersal);
|
||||
}
|
||||
|
||||
void toggleEdgeRendering() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue