4 ms·
I won't get a chance to write this up, but in a similar vein, if you split the grain/texture off of an image, you can scale and stretch the image as needed, the
by jws 16y ago
I won't get a chance to write this up, but in a similar vein, if you split the grain/texture off of an image, you can scale and stretch the image as needed, then drop a fairly small, tiled grain texture back on top. I think it is nicer to do two grain textures, one for lighter and one for darker. Make the grain image be solid white or black and put the grain in the alpha channel.
- xbot 16y agoHey guys, I actually mocked up a woodgrain test page while I was developing the article but I ended up preferring the lego and curtain examples. But if your interested: http://www.sitepoint.com/examples/primes/woodgrain.html http://www.sitepoint.com/examples/primes/woodgrain.html It's not bad, but I don't think it's killer yet. I've got a very raw maze generation example somewhere if anyone's interested.
- prawn 16y agoThis is HN. Almost everyone's interested, so post away!
- xbot 16y agohttp://www.sitepoint.com/examples/primes/maze.html http://www.sitepoint.com/examples/primes/maze.html The graphics are a bit nasty but the concept is works. There seems to be a diagonal pattern emerging, but a fourth layer would certainly break that.