This Fiddle demonstrates how to fill a path with an SVG pattern, and also fill it with RGB color value.
jQuery 1.8.3, HTML, CSS, JavaScript