Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A jQuery plugin to generate Piet Mondrian-inspired canvases
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
demo
spec
src
.gitignore
Gruntfile.js
LICENSE
README.md
bower.json
package.json

README.md

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 http://breakfastdinnertea.co.uk).

Customisable settings:

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