raster

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package raster registers the CPU tile-based coverage filler for complex paths.

Import this package to enable adaptive tile rasterization (4x4 or 16x16 tiles) for paths above the complexity threshold, without requiring GPU acceleration. The filler auto-selects SparseStrips (4x4 tiles) for typical paths and TileCompute (16x16 tiles) for extremely complex paths on large canvases.

If GPU acceleration is also needed, use import _ "github.com/gogpu/gg/gpu" instead, which registers both the GPU accelerator and the coverage filler.

Usage:

import _ "github.com/gogpu/gg/raster" // enable CPU tile rasterization

Jump to

Keyboard shortcuts

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