Change image to flower
Using vector graphics for the image doesn't make a huge amount of sense. The flower photo is by Raph and happily licensed to anyone who wants to use it.
diff --git a/examples/assets/piet-logo.png b/examples/assets/piet-logo.png
deleted file mode 100644
index 1f5a48f..0000000
--- a/examples/assets/piet-logo.png
+++ /dev/null
Binary files differ
diff --git a/examples/assets/splash-flower.jpg b/examples/assets/splash-flower.jpg
new file mode 100644
index 0000000..dc09261
--- /dev/null
+++ b/examples/assets/splash-flower.jpg
Binary files 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::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 @@
// 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 @@
);
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()),
);
}