We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am rendering a 32px x 32px pixel art sprite using
let dst = graphics::Point2::new(self.pos_x as f32, self.pos_y as f32); let scale = graphics::Point2::new(5., 5.); graphics::draw_ex(ctx, &self.image1, DrawParam { dest: dst, rotation: 0., scale, ..Default::default() })?;
but the result is extremely blurry:
The text was updated successfully, but these errors were encountered:
Resolved by setting FilterMode to Nearest:
let mut image1 = graphics::Image::new(ctx, "/lettuce.png").unwrap(); image1.set_filter(graphics::FilterMode::Nearest);
Sorry, something went wrong.
No branches or pull requests
I am rendering a 32px x 32px pixel art sprite using
but the result is extremely blurry:
The text was updated successfully, but these errors were encountered: