xiaolinwu

package
v0.0.0-...-4710020 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL