-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
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
close() on path doesn't interact with stroking as expected. #201
Comments
Interesting. I couldn't observe this behavior, so I think this would need a snippet that can reproduce it. For example this fiddle snippet produces the correct output: BLImage render(const BLContextCreateInfo& cci) {
BLImage img(500, 500, BL_FORMAT_PRGB32);
BLContext ctx(img, cci);
ctx.clearAll();
BLPath p;
p.moveTo(200, 100);
p.lineTo(300, 200);
p.lineTo(100, 200);
p.close();
p.moveTo(200, 300);
p.lineTo(300, 400);
p.lineTo(100, 400);
p.close();
ctx.strokePath(p, BLRgba32(0xFFFFFFFF));
return img;
} |
I'll see if I can get a snippet to reproduce today.
…On Mon, May 20, 2024 at 2:23 AM Petr Kobalicek ***@***.***> wrote:
Interesting. I couldn't observe this behavior, so I think this would need
a snippet that can reproduce it.
For example this fiddle snippet produces the correct output:
BLImage render(const BLContextCreateInfo& cci) {
BLImage img(500, 500, BL_FORMAT_PRGB32);
BLContext ctx(img, cci);
ctx.clearAll();
BLPath p;
p.moveTo(200, 100);
p.lineTo(300, 200);
p.lineTo(100, 200);
p.close();
p.moveTo(200, 300);
p.lineTo(300, 400);
p.lineTo(100, 400);
p.close();
ctx.strokePath(p, BLRgba32(0xFFFFFFFF));
return img;
}
—
Reply to this email directly, view it on GitHub
<#201 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEMKRJSID7KKRZG4S6SR3ZDGXHRAVCNFSM6AAAAABHS6IF76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZHEZTCNZSGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I haven't been able to reproduce this so I think it must have been on my end, though I'm not sure exactly how. I'll refile if I come across a reproduction. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The close() command on BLPath says that it works like the 'Z' command in SVG and links here. Which indicates that stroking a closed path should join back to the start of the curve. But if I don't manually do a lineTo back to the start, my strokes don't paint fully, which you can see here:
The text was updated successfully, but these errors were encountered: