Package-level declarations

Types

Link copied to clipboard
class WindfoilDrawCommand(val instances: VertexBuffer, val count: Int) : BoundaryDrawCommand

Prepared windfoil instances, drawn with WindfoilDrawer.draw

Link copied to clipboard

Draws shapes from a WindfoilMap with the windfoil algorithm. The coverage of a pixel is the box filtered coverage of the shape over the pixel, computed from the winding integral of its curves. Strokes are drawn from the distance to the curves within reach of the stroke.

Link copied to clipboard
class WindfoilMap(val curves: ColorBuffer, val rows: ColorBuffer) : BoundaryMap

GPU storage for shapes drawn with the windfoil algorithm, which computes the box filtered coverage of a pixel from the winding integral of the curves of a shape over the pixel. Shapes are split in pieces that are monotone in x and y, which are filed in horizontal bands.

Link copied to clipboard
class WindfoilShape(val bounds: Rectangle, val rowBase: Int, val bandCount: Int, val bandHeight: Double, val inverseBandHeight: Double, val fillRule: FillRule)

The bands of a shape in a WindfoilMap