remove timer

This commit is contained in:
Chad Brokaw 2022-12-08 12:45:45 -05:00
parent 4ea379aaa7
commit 4b1f9d1921
2 changed files with 4 additions and 5 deletions

View file

@ -65,7 +65,7 @@ async fn run(event_loop: EventLoop<()>, window: Window) {
match scene_ix % N_SCENES {
0 => test_scene::render_anim_frame(&mut builder, &mut simple_text, current_frame),
1 => test_scene::render_blend_grid(&mut builder),
2 => test_scene::render_tiger(&mut builder, false),
2 => test_scene::render_tiger(&mut builder),
3 => test_scene::render_brush_transform(&mut builder, current_frame),
4 => test_scene::render_funky_paths(&mut builder),
_ => test_scene::render_scene(&mut builder),

View file

@ -48,9 +48,8 @@ pub fn render_funky_paths(sb: &mut SceneBuilder) {
const N_CIRCLES: usize = 0;
#[allow(unused)]
pub fn render_svg(sb: &mut SceneBuilder, svg: &PicoSvg, print_stats: bool) {
pub fn render_svg(sb: &mut SceneBuilder, svg: &PicoSvg) {
use crate::pico_svg::*;
//let start = std::time::Instant::now();
for item in &svg.items {
match item {
Item::Fill(fill) => {
@ -76,12 +75,12 @@ pub fn render_svg(sb: &mut SceneBuilder, svg: &PicoSvg, print_stats: bool) {
}
#[allow(unused)]
pub fn render_tiger(sb: &mut SceneBuilder, print_stats: bool) {
pub fn render_tiger(sb: &mut SceneBuilder) {
use super::pico_svg::*;
let xml_str =
std::str::from_utf8(include_bytes!("../../assets/Ghostscript_Tiger.svg")).unwrap();
let svg = PicoSvg::load(xml_str, 6.0).unwrap();
render_svg(sb, &svg, print_stats);
render_svg(sb, &svg);
}
pub fn render_scene(sb: &mut SceneBuilder) {