Last week, I wrote an article about using Flash 8 Perlin noise to generate a wood texture. Today, it's marble.
According to this link, the Perlin formula for marble is:
texture = cosine( x + perlin(x,y,z) )
Again, we don't want to do math on every pixel -- too slow. So, how do we do this with the existing Flash 8 API? First, let's pretend that the perlin term in the above equation is not there. Here's what our image would look like (this image is arbitrarily blue monochrome):
