feat(space-propagation): slight naming improvement
This commit is contained in:
parent
02b1331f72
commit
20c3ae970f
@ -50,6 +50,7 @@ pub fn Background(cx: Scope, class: &'static str) -> impl IntoView {
|
||||
context.line_to(child.position.x.into(), child.position.y.into());
|
||||
});
|
||||
}
|
||||
context.stroke();
|
||||
|
||||
context.set_fill_style(&JsValue::from("magenta"));
|
||||
for a in sc.attractors.iter() {
|
||||
@ -63,7 +64,7 @@ pub fn Background(cx: Scope, class: &'static str) -> impl IntoView {
|
||||
end_time - start_time
|
||||
);
|
||||
|
||||
sc.tick();
|
||||
sc.grow();
|
||||
});
|
||||
|
||||
let class = format!("canvas {}", class);
|
||||
|
||||
@ -117,7 +117,7 @@ impl SpaceColonization {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn tick(&self) {
|
||||
pub fn grow(&self) {
|
||||
todo!();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user