not-fl3 / macroquad

Cross-platform game engine in Rust.
Apache License 2.0
3.3k stars 323 forks source link

Why do I see these blank dots when using draw_circle_lines() function? #65

Open Joe23232 opened 3 years ago

Joe23232 commented 3 years ago

image

https://docs.rs/macroquad/0.2.9/macroquad/fn.draw_circle_lines.html

So I am using draw_circle_lines() function using the macroquad crate and for some reason it displays this ugly blank dots where you can see the background. Here is my code to draw this (only for the draw_circle_line() function)

draw_circle_lines(screen_width()/2., screen_height()/2, 30, 20., RED);

VaskillerDev commented 3 years ago

Hi, thanks for the issue. This may be due to the fact that the nearest points that are drawn in a circle are not connected in any way, so we have a lot of triangles. Perhaps draw_poly_lines() calls can be made in a different way.

upd: If follow the path of less resistance, we just need to correct in shapes.rs in draw_poly_lines() in cycle instead of i+1 to i+2