diff --git a/examples/assets/piet-logo.png b/examples/assets/piet-logo.png deleted file mode 100644 index 1f5a48f..0000000 Binary files a/examples/assets/piet-logo.png and /dev/null differ diff --git a/examples/assets/splash-flower.jpg b/examples/assets/splash-flower.jpg new file mode 100644 index 0000000..dc09261 Binary files /dev/null and b/examples/assets/splash-flower.jpg differ diff --git a/examples/scenes/src/test_scenes.rs b/examples/scenes/src/test_scenes.rs index 23ea373..5e4ca8e 100644 --- a/examples/scenes/src/test_scenes.rs +++ b/examples/scenes/src/test_scenes.rs @@ -3,7 +3,7 @@ use vello::kurbo::{Affine, BezPath, Ellipse, PathEl, Point, Rect}; use vello::peniko::*; use vello::*; -const PIET_LOGO_IMAGE: &[u8] = include_bytes!("../../assets/piet-logo.png"); +const FLOWER_IMAGE: &[u8] = include_bytes!("../../assets/splash-flower.jpg"); macro_rules! scene { ($name: ident) => { @@ -103,7 +103,7 @@ fn animated_text(sb: &mut SceneBuilder, params: &mut SceneParams) { // should use a better strategy. let piet_logo = params .images - .from_bytes(PIET_LOGO_IMAGE.as_ptr() as usize, PIET_LOGO_IMAGE) + .from_bytes(FLOWER_IMAGE.as_ptr() as usize, FLOWER_IMAGE) .unwrap(); use PathEl::*; @@ -211,7 +211,7 @@ fn animated_text(sb: &mut SceneBuilder, params: &mut SceneParams) { ); sb.draw_image( &piet_logo, - Affine::translate((550.0, 250.0)) * Affine::skew(-20f64.to_radians().tan(), 0.0), + Affine::translate((800.0, 50.0)) * Affine::rotate(20f64.to_radians()), ); }