vger-rs icon indicating copy to clipboard operation
vger-rs copied to clipboard

Edges of shapes are not rendered well

Open Long0x0 opened this issue 9 months ago • 2 comments

Black rectangle expected to be invisible:

    let black = vger.color_paint(Color{r: 0.0, g: 0.0, b: 0.0, a: 1.0});
    vger.fill_rect(euclid::rect(100.0, 100.0, 100.0, 100.0), 10.0, black);

image (5x)

Two rectangles expected to be seamless:

    let cyan = vger.color_paint(Color::CYAN);
    vger.fill_rect(euclid::rect(100.0, 100.0, 100.0, 100.0), 0.0, cyan);
    vger.fill_rect(euclid::rect(200.0, 100.0, 100.0, 100.0), 0.0, cyan);

image (5x)

I guess these artifacts are caused by anti-aliasing.

Long0x0 avatar May 05 '24 15:05 Long0x0