Thanks to visit codestin.com
Credit goes to github.com

Skip to content

engines: excessive large stroke width has a different visual result. #3668

@hermet

Description

@hermet

It seems that only the SW engine has even/odd visual holes. Need to figure out and align the result among engines.

sw:

Image

gl:

Image

wg:

Image
    bool content(tvg::Canvas* canvas, uint32_t w, uint32_t h) override
    {
        //Prepare Round Rectangle
        auto shape1 = tvg::Shape::gen();
        shape1->moveTo(100, 100);
        shape1->lineTo(120, 100);
        shape1->lineTo(120, 120);
        shape1->close();
        shape1->fill(0, 255, 0);
        shape1->strokeWidth(70);
        shape1->strokeJoin(tvg::StrokeJoin::Round);
        shape1->strokeFill(255, 255, 255);

        tvg::Matrix m = {10, 0, -600, 0, 10, -500, 0, 0, 1};
        shape1->transform(m);

        canvas->push(shape1);

        return true;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    cpuSoftware render backendenhancementImprove features

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions