Expand description
Paint MVT features onto a raster canvas.
Three painting primitives are exposed:
paint_polygons—tiny-skiasolid fill + optional outline +libblurgaussian blur. Fast path for large patches.paint_polygons_dabs—hokusaiscatter-dab fill with world-deterministic jitter (seamless across tile boundaries).paint_lines—hokusai::Brush::stroke_toalong polylines.
These are the building blocks for the graph nodes in nodes;
the host-side glue (PNG encoding, asset loading) lives in host.
All painting happens on a Canvas that optionally wraps a
padded buffer (tile_size + 2 * pad). Paint operations work in
the padded space; cropping happens at the host boundary.
Re-exports§
pub use brush::BrushDefaults;pub use dabs::paint_polygons_dabs;pub use dabs::DabFillStyle;pub use strokes::paint_lines;pub use strokes::LineStrokeStyle;
Modules§
- brush
- Extract paint-friendly defaults from a
hokusaiBrush. - builtin
- Built-in brushes, bundled into the binary via
include_str!. - dabs
- Hokusai-backed dab scatter fill.
- host
- A raster canvas backed by a premultiplied RGBA
Pixmap. - nodes
- Node implementations for the graph evaluator. One file per op.
- render
- Feature filtering and collection helpers shared by feature-source
nodes (
features). - strokes
- Polyline watercolor stroking via
hokusai::Brush::stroke_to.
Structs§
- Brush
- Canvas
- RgbaF32
- Watercolor
Style - Style for a watercolor polygon layer.
Enums§
Functions§
- paint_
polygons - Paint a collection of MVT polygons onto a fresh transparent layer, blur it,
and composite it over
canvas(source-over).