Skip to content
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

about stroke align with ofSetLineWidth #8069

Open
2bbb opened this issue Aug 4, 2024 · 4 comments
Open

about stroke align with ofSetLineWidth #8069

2bbb opened this issue Aug 4, 2024 · 4 comments

Comments

@2bbb
Copy link
Contributor

2bbb commented Aug 4, 2024

This is just propose.

So great PR #8019 was merged.

It is awesome and too useful.
and, I think if we can specify stroke align like inner / center / outer.

How do you think?

@ofTheo
Copy link
Member

ofTheo commented Aug 5, 2024

@2bbb - I think any stroke / line width tools would be absolutely welcome!
If you wanted to PR - it would be a great addition.

cc @NickHardeman

@NickHardeman
Copy link
Contributor

@2bbb could be similar to ofSetRectMode(ofRectMode mode); maybe something like ofSetStrokeAlign(OF_STROKE_ALIGN_CENTER); I think it would be tricky with non-closed lines, like sine waves, etc. to determine which side is inside or outside.

@2bbb
Copy link
Contributor Author

2bbb commented Aug 14, 2024

@ofTheo

maybe I can't implement the feature... only my desire 😉

@NickHardeman

exactly. it will effect to only close paths.

someone please implement this?

@GitBruno
Copy link

@2bbb could be similar to ofSetRectMode(ofRectMode mode); maybe something like ofSetStrokeAlign(OF_STROKE_ALIGN_CENTER); I think it would be tricky with non-closed lines, like sine waves, etc. to determine which side is inside or outside.

Inside: 1px, Outside: Will look like double.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants