let movie = movie(); let bg = background( 250.0 / 255.0, 224.0 / 255.0, 55.0 / 255.0); let bg_item = timed(bg, 0.0, 999.0); //movie.add(bg_item); //let t = code("pub struct Wow { hi: u64 }\nfn blah() -> u64 {}", 60.0); //let t_item = timed(t, 0.0, 999.0); //movie.add(t_item); let black = rgba(0.0, 0.0, 0.0, 1.0); let red = rgba(200.0, 0.0, 0.0, 1.0); let highlighted = highlight("fn hello(arg: i32) -> String {\n println!(\"Hello!\");\n}", "rs", "base16-ocean.dark"); let ct = colored_text(highlighted, "SF Mono", 0.05); let ct_item = timed(ct, 0.0, 999.0); movie.add(ct_item); //let colored = colored_string(); //colored.add(colored_segment("Hello, ")); //let segment = colored_segment("Pat"); //segment.set_foreground(red); //colored.add(segment); //colored.add(colored_segment(",\nhow are you?")); //let ct = colored_text(colored, "SF Mono", 0.05); //let ct_item = timed(ct, 0.0, 999.0); //movie.add(ct_item); //let t = text("abcdefg", "SF Mono", 0.05, black); //let t_item = timed(t, 0.0, 999.0); //movie.add(t_item); //let t = text("\nabcdefg", "SF Mono", 0.05, red); //let t_item = timed(t, 0.0, 999.0); //movie.add(t_item); movie