Skip to content

Commit

Permalink
stroked
Browse files Browse the repository at this point in the history
  • Loading branch information
rfuzzo committed Jun 8, 2024
1 parent a39216e commit 9991961
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,6 @@ impl TemplateApp {

let canvas_width = bg_image.width() as f32;
let canvas_height = bg_image.height() as f32;
//let r = real_height / real_width;
//let canvas_height = r * canvas_width as f32;
let transform = RectTransform::from_to(
from,
Rect::from_min_max(pos2(0.0, 0.0), pos2(canvas_width, canvas_height)),
Expand Down Expand Up @@ -440,9 +438,9 @@ impl TemplateApp {
rect.height() as u32,
|x, y| {
if x < stroke_width as u32
|| x >= rect.width() as u32 - stroke_width as u32
|| x > (rect.width() - stroke_width) as u32
|| y < stroke_width as u32
|| y >= rect.height() as u32 - stroke_width as u32
|| y > (rect.height() - stroke_width) as u32
{
image::Rgba([
color.r(),
Expand Down

0 comments on commit 9991961

Please sign in to comment.