Closed boomyjee closed 13 years ago
should be canvas.set_pixel(x, y, @pixels[(x % @width) + (y % @height) * @width]) instead of canvas.set_pixel(x, y, @pixels[(x % @width) + (y % @height) * @height])
Bug results in wrong tiling with non-square images (it's obvious). BTW, thx for great lib.
Doh! Thanks for reporting this. I'll merge it tomorrow.
should be canvas.set_pixel(x, y, @pixels[(x % @width) + (y % @height) * @width]) instead of canvas.set_pixel(x, y, @pixels[(x % @width) + (y % @height) * @height])
Bug results in wrong tiling with non-square images (it's obvious). BTW, thx for great lib.