package
0.0.0-20240913120853-ab6a133b82ab
Repository: https://github.com/mathieumoalic/amumax.git
Documentation: pkg.go.dev

# Functions

NewAlphaOverPainter creates a new AlphaOverPainter for the given image.
NewAlphaSrcPainter creates a new AlphaSrcPainter for the given image.
NewGammaCorrectionPainter creates a new GammaCorrectionPainter that wraps the given Painter.
NewMonochromePainter creates a new MonochromePainter that wraps the given Painter.
NewRasterizer creates a new Rasterizer with the given bounds.
NewRGBAPainter creates a new RGBAPainter for the given image.
Stroke adds q stroked with the given width to p.

# Variables

BevelJoiner adds bevel joins to a stroked path.
ButtCapper adds butt caps to a stroked path.
RoundCapper adds round caps to a stroked path.
RoundJoiner adds round joins to a stroked path.
SquareCapper adds square caps to a stroked path.

# Structs

An AlphaOverPainter is a Painter that paints Spans onto an image.Alpha using the Over Porter-Duff composition operator.
An AlphaSrcPainter is a Painter that paints Spans onto an image.Alpha using the Src Porter-Duff composition operator.
A GammaCorrectionPainter wraps another Painter, performing gamma-correction on each Span's alpha value.
A MonochromePainter wraps another Painter, quantizing each Span's alpha to be either fully opaque or fully transparent.
A Point represents a two-dimensional point or vector, in 24.8 fixed point format.
No description provided by the author
No description provided by the author
A Span is a horizontal segment of pixels with constant alpha.

# Interfaces

An Adder accumulates points on a curve.
A Capper signifies how to begin or end a stroked path.
A Joiner signifies how to join interior nodes of a stroked path.
A Painter knows how to paint a batch of Spans.

# Type aliases

The CapperFunc type adapts an ordinary function to be a Capper.
A Fix32 is a 24.8 fixed point number.
A Fix64 is a 48.16 fixed point number.
The JoinerFunc type adapts an ordinary function to be a Joiner.
The PainterFunc type adapts an ordinary function to the Painter interface.
A Path is a sequence of curves, and a curve is a start point followed by a sequence of linear, quadratic or cubic segments.