feat(space-propagation): slight naming improvement

This commit is contained in:
jeangab 2023-07-19 15:32:19 -04:00
parent 02b1331f72
commit 20c3ae970f
2 changed files with 3 additions and 2 deletions

View File

@ -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.line_to(child.position.x.into(), child.position.y.into());
}); });
} }
context.stroke();
context.set_fill_style(&JsValue::from("magenta")); context.set_fill_style(&JsValue::from("magenta"));
for a in sc.attractors.iter() { for a in sc.attractors.iter() {
@ -63,7 +64,7 @@ pub fn Background(cx: Scope, class: &'static str) -> impl IntoView {
end_time - start_time end_time - start_time
); );
sc.tick(); sc.grow();
}); });
let class = format!("canvas {}", class); let class = format!("canvas {}", class);

View File

@ -117,7 +117,7 @@ impl SpaceColonization {
} }
} }
pub fn tick(&self) { pub fn grow(&self) {
todo!(); todo!();
} }
} }