From 702d7eff3f9bbcedeaa4855dbbfb391e4a2d54a2 Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 2 Dec 2024 16:52:23 +0900 Subject: [PATCH] fix: line transparency --- examples/bevy-image.rs | 2 +- examples/dynamic-image.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bevy-image.rs b/examples/bevy-image.rs index 1970a93..604a415 100644 --- a/examples/bevy-image.rs +++ b/examples/bevy-image.rs @@ -80,7 +80,7 @@ fn draw_png(image: &Image, img_path: &str) { a: 0xff, }), &StrokeStyle { - width: 1., + width: scale as f32, ..StrokeStyle::default() }, &DrawOptions::new(), diff --git a/examples/dynamic-image.rs b/examples/dynamic-image.rs index 6b4ee4d..803399c 100644 --- a/examples/dynamic-image.rs +++ b/examples/dynamic-image.rs @@ -40,7 +40,7 @@ fn draw_png(img_path: &str) { a: 0xff, }), &StrokeStyle { - width: 1., + width: scale as f32, ..StrokeStyle::default() }, &DrawOptions::new(),