I made similar thing few years ago, but with more effects (click to randomize gradient effect) <a href="http:&#x2F;&#x2F;lib.ivank.net&#x2F;demos&#x2F;plasma.html" rel="nofollow">http:&#x2F;&#x2F;lib.ivank.net&#x2F;demos&#x2F;plasma.html</a><p>59 lines of code