In this case, the heart of the function is:
x = ((sin(xSeed * y) - cos(ySeed * x)) * width * 0.2) + width / 2
... and the same for "y".(http://jashkenas.s3.amazonaws.com/misc/deJong/docs/deJong.ht...)
In our attractor, every time the coordinate pair lands on a new spot, that spot is exposed to a little bit of light.
What you can do for "x" and "y", you can also do for "z". If you generalize the deJong attractor into 3 dimensions, it looks like this: