A way to create random-noise background image (png) with javascript?

后端 未结 4 1163
Happy的楠姐
Happy的楠姐 2021-02-09 02:31

The new layout of YouTube added a background random-noise which I like very much, having seen almost exactely the same effect on other sites, so I plan to use the same technique

4条回答
  •  死守一世寂寞
    2021-02-09 03:14

    There are two jQuery plugin libraries that do exactly what you are looking for: NoiseGen and Noisy. Haven't used either yet but they both look pretty good.

    NoiseGen

    • Project: http://primegap.net/2011/10/20/noisegen-generate-background-noise-with-jquery/
    • Demo: http://www.lucaongaro.eu/demos/noisegen/

    Noisy

    • Project: https://github.com/DanielRapp/Noisy
    • Demo: http://rappdaniel.com/other/noisy-sample/

提交回复
热议问题