Skip to main content
Post Made Community Wiki by greybeard
Source Link
greybeard
  • 6.5k
  • 3
  • 20
  • 52

In replaceColors(), the special handling of just one tile is not justified.
There are two places that open-code tiling.

Process data before replication!
Depending on the relative size of image and texture, this may include multiplication/combination/convolution.