File talk:Blank Go board.png
Jump to navigation
Jump to search
Metapost script for original file
[edit]The original version of this image was created by David Benbennick using the following Metapost program:
scale=0.6in; % scale is the diameter of a stone linethickness = scale/20; pickup pencircle scaled linethickness; boardwidth = 19; boardheight = 19; % a 5-by-5 positions of a go board. beginfig(1); pickup pencircle scaled linethickness; fill unitsquare xscaled ((boardwidth+0.2)*scale) yscaled ((boardheight+0.2)*scale) shifted (-0.6*scale, -0.6scale) withcolor (0.86,0.70,0.36); for i = 0 upto boardwidth - 1 : draw (scale*i,0) -- (scale*i, (boardheight-1)*scale); endfor; for j = 0 upto boardheight - 1 : draw (0,scale*j) -- ((boardwidth-1)*scale,scale*j); endfor; pickup pencircle scaled (8*linethickness); for i = 3, 9, 15 : for j = 3, 9, 15 : draw (scale*i,scale*j); endfor; endfor; endfig; end;
This script can be run by first saving as "Blank_Go_board.mp", and then running the following commands:
mpost Blank_Go_board.mp convert -density 400 Blank_Go_board.1 Blank_Go_board.pnm pnmcrop Blank_Go_board.pnm | pnmtopng > Blank_Go_board.png.uncrush pngcrush -reduce -brute -l 9 Blank_Go_board.png.uncrush Blank_Go_board.png
The current version of the image is regenerated from the vector version File:Blank_Go_board.svg