Stop
Continue
Go
/* Mondrian Grid This example uses recursion to draw a Mondrian style grid. When the mondrianSplit function is called on a rectangle with corder at (x,y), width w, and height h, one of three things happens: 1) If both w and h are small, a rectangle is drawn. 2) If the rectangle is taller than it is wide, the rectangle is split into two vertical components. The function mondrianSplit is called on each of these. 3) If the rectangle is wider than it is tall, it is split into two horizontal components. */ function mondrianSplit(x,y,w,h){ var tolerance=20; //defines "small" var W, H; //new Width and Height //for recursive call //draw rectangle if w and h are both small if ((w
default
3024-day
3024-night
ambiance
base16-dark
base16-light
blackboard
cobalt
eclipse
elegant
erlang-dark
lesser-dark
mbo
mdn-like
midnight
monokai
neat
night
paraiso-dark
paraiso-light
pastel-on-dark
rubyblue
solarized dark
solarized light
the-matrix
tomorrow-night-eighties
twilight
vibrant-ink
xq-dark
xq-light