Skip to content

Commit

Permalink
fix: wrong color conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
nixon-voxell committed Aug 13, 2024
1 parent f606913 commit bd7f837
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified .github/assets/hello_world.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/brush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Brush {
}

pub fn from_color(color: Color) -> Self {
let color = color.to_linear();
let color = color.to_srgba();
Self {
value: peniko::Brush::Solid(peniko::Color::rgba(
color.red as f64,
Expand Down

0 comments on commit bd7f837

Please sign in to comment.