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
Hello,
If start_angle or sweep_angle are NaN or inf, arc() will make stroke() fall into an infinite loop. Maybe arc() should panic instead?
The text was updated successfully, but these errors were encountered:
What was the situation where you ran into this?
Sorry, something went wrong.
Here is the code Notice that in StrokeStyle dash_offset was set to 1. It seems it only happens if I change the StrokeStyle.
use raqote::*; fn main() { let mut dt = DrawTarget::new(400, 400); let mut pb = PathBuilder::new(); pb.arc(100., 100., 10., 1. / 0., 2.); let path = pb.finish(); dt.stroke( &path, &Source::Solid(SolidSource { r: 0x0, g: 0x0, b: 0x80, a: 0x80, }), &StrokeStyle { cap: LineCap::Round, join: LineJoin::Round, width: 10., miter_limit: 2., dash_array: vec![10., 18.], dash_offset: 1., }, &DrawOptions::new(), ); println!("{:?}", dt.write_png("example.png")); }
No branches or pull requests
Hello,
If start_angle or sweep_angle are NaN or inf, arc() will make stroke() fall into an infinite loop.
Maybe arc() should panic instead?
The text was updated successfully, but these errors were encountered: