Anti-aliasing polygon rasterizer, capable of handling non-uniform grids.
Go to file
jan c7f551b0b7 Use complex number representation for vertex coordinates,
ie. (x, y) becomes x + iy. This gives a bit of a speedup
over repeating stuff for multiple arrays, and lets you
keep using the numpy +- operators (unlike structured
numpy arrays)
2016-07-16 21:47:06 -07:00
.gitignore add all files 2016-03-15 20:26:21 -07:00
float_raster.py Use complex number representation for vertex coordinates, 2016-07-16 21:47:06 -07:00
LICENSE.md add license 2016-04-13 03:52:57 -07:00
README.md switch to code style and remove --upgrade 2016-03-29 13:57:18 -07:00
setup.py Use scipy.sparse.coo_matrix instead of numpy.histogram2d to get a decent speedup 2016-07-13 16:39:37 -07:00

float_raster README

float_raster is a Python module for accurately drawing polygons onto non-uniform rectangular grids

float_raster calculates pixel values with float64 precision and is capable of drawing on grids with variable pixel widths and heights.

Installation

Requirements:

  • python 3 (written and tested with 3.5)
  • numpy

Install with pip, via git:

pip install git+https://mpxd.net/gogs/jan/float_raster.git@release