Lines Matching refs:voronoi
6 - Python translation to file voronoi.py by Bill Simons, 2005, http://www.oxfish.com/
28 import voronoi
114 c = voronoi.Context()
121 pts.append(voronoi.Site(x, y))
123 pts.append(voronoi.Site(x + q['width'], y))
125 pts.append(voronoi.Site(x + q['width'], y + q['height']))
127 pts.append(voronoi.Site(x + q['width'], y - q['height']))
129 pts.append(voronoi.Site(x - q['width'], y))
131 pts.append(voronoi.Site(x - q['width'], y + q['height']))
133 pts.append(voronoi.Site(x - q['width'], y - q['height']))
135 pts.append(voronoi.Site(x, y + q['height']))
137 pts.append(voronoi.Site(x, y - q['height']))
139 pts.append(voronoi.Site(x, y)) # leave border area blank
150 sl = voronoi.SiteList(pts)
151 voronoi.voronoi(sl, c)