refactor(examples::animation_frame): Remove "extern crate"
-#[macro_use]
-extern crate seed;
use rand::prelude::*;
-use seed::prelude::*;
+use seed::{prelude::*, *};
// Model
@@ -27,7 +25,7 @@ impl Car {
fn generate_color() -> CarColor {
let hue = thread_rng().gen_range(0, 360);
- format!("hsl({},100%,50%)", hue)
+ format!("hsl({}, 80%, 50%)", hue)
}
}
@@ -93,7 +91,7 @@ fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
// View
fn view(model: &Model) -> Node<Msg> {
- // scene container + sky
+ // scene container, aslo represents sky
div![
style! {
St::Overflow => "hidden";
