Procedural Background

by ciaccodavide

bg.php is a PHP script that act as a small png file, so that the image generated by it can be used directly in html and css.

CSS:

body{ background-image: url(bg.php?ps=8&seed=384190105); }

If the seed parameter is set, the output will be always the same:

If the seed parameter is not set, a random seed will be chosen: