NPR: Texturizer

  scripts
  sprites
See inside
Instructions

GO HERE FOR MUCH FASTER RENDER:
http://phosphorus.github.io/#78570578

IMPORT YOUR OWN TEXTURES:
https://scratch.mit.edu/discuss/topic/140162/?page=17#post-1443668

Notes and Credits

Attempts to recreate the texture rendering effect available in Microsoft Word 2010 and onwards

How it works:
As usual, we start with grabbing the RGB values for the pixel.

Then, we get the pixel for the loaded texture image. The texture is repeated so that we can have a 56x56 texture as opposed to requiring a 480x360 texture.

In the texture data, we only store a brightness value, from 0 to 255. The value 127 indicates no change.

So, we then offset the brightness using the texture brightness and there we have it :)

Shared: 25 Sep 2015 Modified: 17 Oct 2017
Favorite this project 13
Love this project 22
Total views 293
View the remix tree  5
  
More projects by chooper100