Skip to content

x/image/vector: repeat Draw() -> nonsense #68981

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

Open
splace opened this issue Aug 21, 2024 · 4 comments
Open

x/image/vector: repeat Draw() -> nonsense #68981

splace opened this issue Aug 21, 2024 · 4 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@splace
Copy link

splace commented Aug 21, 2024

Go version

n/a

Output of go env in your module/workspace:

n/a

What did you do?

https://go.dev/play/p/VlCSG5OMtxF

(adapted from package example)

i was trying to draw to two different targets.

What did you see happen?

n/a

What did you expect to see?

no change with repeated Draws

@gopherbot gopherbot added this to the Unreleased milestone Aug 21, 2024
@seankhliao
Copy link
Member

I think you should be calling Reset between Draws?

@seankhliao seankhliao added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 21, 2024
@splace
Copy link
Author

splace commented Aug 21, 2024

I think you should be calling Reset between Draws?

doc says it will remove path, and now tested, that is what reset does.

@splace
Copy link
Author

splace commented Aug 21, 2024

https://go.dev/play/p/DfnYz1Mya2A

if the lower bound of the image, being draw too, is the origin, it works.

maybe something that should be zero, is being left at something else after a draw.

@splace
Copy link
Author

splace commented Aug 21, 2024

https://go.dev/play/p/IkT6qBvHEMJ

and if the target image is a different size, the second draw panics.

same as above? or a different issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

3 participants