diff --git a/texture_sampler.py b/texture_sampler.py index fed53aa..550398c 100644 --- a/texture_sampler.py +++ b/texture_sampler.py @@ -40,7 +40,7 @@ def sample(im, l): #x = 1 - x y = 1 - y - px, py = int(x * width), int(y * height) + px, py = remap(x, 0, 1, 0, width - 1), remap(y, 0, 1, 0, height - 1) assert px < width and py < height color = im.getpixel((px, py))