x/image: LineTo has an unexpected behaviour, or is not enough documented #45723
Labels
Documentation
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am trying to draw a simple line on a picture with the
vector
package.I cannot figure out how the package work.
I made a trivial test and I expect it to see in the mask two identical values (representing the horizontal line) and two identical nil values.
https://play.golang.org/p/RnHAWhUwP7K
I tried to debug the code without success. I may have completely misunderstood how to use the package. Therefore an example would help
What did you expect to see?
Eventually, the representation of a line
What did you see instead?
A blank mask or a black picture
The text was updated successfully, but these errors were encountered: