#foo

pow.js — Algorithmic sunburst generator via CSS, canvas and jQuery.

This jQuery plugin paints a burst pattern onto your element of choice, and is freely available under the MIT license. Pow.js generates the pattern in canvas, and simply layers in the resulting image data as a CSS background. It's kinda actually not that complicated.

/* Try it out. */
$('div#example').pow({
  , // positive integer > 1
  , // any css color
  , // any css color
  , // any css color
  , // any css color
  , // percentage, e.g. '33%'
  , // percentage, e.g. '120%'
    // any jQuery selector
  // note: 'originEl' overrides 'originX' and 'originY'
});

Copyright 2012 by Greg Reimer | MIT Licensed | find it on GitHub