Generate dynamic backgrounds without images using HTML5 Canvas
- jQuery
- HTML5 Canvas Support
jQuery 1.4+ - http://jquery.com/
Here is a complete example
$(document).ready(function(){
$('#test').canvas();
$('#test2').canvas('paper',{opacity:0.3});
$('#test3').canvas('graph',{opacity:0.3});
$('#test4').canvas('tile');
});
The opacity of the background
If set to true the image will be grayscale
Set the base color in the range
Set the bounding color in the range
The padding in between the items in the background (e.g. spacing) [x, y]
The size of the items in the background [width, height]
The default mode is noise
Displays lines like a notebook in blue
Displays a graph-paper like background
Color tiles
All variations accept an optional options parameter that can override any defaults.