Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e65afbb533
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.501 kb

Small jQuery plugin which generates Piet Mondrian-style canvases and places it as a background on selected elements.

Only really tested in modern (non-IE) browsers on divs and the body (see it in use at

Customisable settings:

$.fn.mondrian.defaults = {
    foreground: '#000',
    background: '#fff',
    lineWidth: 3,
    lineCap: 'square',
    linesX: 4,
    linesY: 6,
    colors: ['red','green','blue']
Jump to Line
Something went wrong with that request. Please try again.