M
M
MaryTay2020-08-31 13:01:22
JavaScript
MaryTay, 2020-08-31 13:01:22

How to load a texture so that the final canvas is 1 in 1 with the texture?

How to load a texture so that the final canvas is 1 in 1 with the texture
If you zoom in on the resulting image, you can see a green / yellow stroke around the texture
The original texture is in image.src
Source code: https://jsfiddle.net/mu1bwa4c/1/
Original:
5f4cca3a8393f876229212.png
final image
5f4cca19d0dc5611491084.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question