mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +11:00
remove timer
This commit is contained in:
parent
4ea379aaa7
commit
4b1f9d1921
|
@ -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),
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue