Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawLine ¶
func DrawLine(x0, y0, x1, y1 int, out rasterizing.PixelFunc)
DrawLine draws an antialiased line using Xiaolin Wu’s algorithm. The output of each step is provided to the out func. From https://www.geeksforgeeks.org/anti-aliased-line-xiaolin-wus-algorithm/
func NewRasterizer ¶
func NewRasterizer() rasterizing.Rasterizer
func NewRasterizer2 ¶
func NewRasterizer2() rasterizing.Rasterizer2
Experiment in optimizing by reusing a buffer and having clients iterate on a block instead of processing each pixel. Performance advantage is negligible.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.