Directories
¶
| Path | Synopsis |
|---|---|
|
Package blend implements the Photoshop blend modes as pure functions.
|
Package blend implements the Photoshop blend modes as pure functions. |
|
Package blur provides a fast separable blur used as a primitive by the effects package.
|
Package blur provides a fast separable blur used as a primitive by the effects package. |
|
Package canvas is the orchestration layer most callers import.
|
Package canvas is the orchestration layer most callers import. |
|
Package effects implements Photoshop-style layer styles as declarative data.
|
Package effects implements Photoshop-style layer styles as declarative data. |
|
examples
|
|
|
blendmodes
command
Command blendmodes renders a 4x4 chart of every blend mode, each cell blending a vertical color ramp over a horizontal rainbow so the modes' behavior is visible at a glance.
|
Command blendmodes renders a 4x4 chart of every blend mode, each cell blending a vertical color ramp over a horizontal rainbow so the modes' behavior is visible at a glance. |
|
effects
command
Command effects renders each of the eight layer styles on a rounded-rectangle badge, in a 4x2 grid.
|
Command effects renders each of the eight layer styles on a rounded-rectangle badge, in a 4x2 grid. |
|
gradients
command
Command gradients renders the five gradient types plus a per-stop opacity fade shown over a checkerboard, in a 3x2 grid.
|
Command gradients renders the five gradient types plus a per-stop opacity fade shown over a checkerboard, in a 3x2 grid. |
|
internal/demo
Package demo holds helpers shared by the example programs: saving buffers to PNG, building solid and checkerboard content, and a few handy path shapes.
|
Package demo holds helpers shared by the example programs: saving buffers to PNG, building solid and checkerboard content, and a few handy path shapes. |
|
paths
command
Command paths renders stroke caps, stroke joins, dashes, the two fill rules, and a stroked bezier, all drawn directly onto one buffer.
|
Command paths renders stroke caps, stroke joins, dashes, the two fill rules, and a stroked bezier, all drawn directly onto one buffer. |
|
showcase
command
Command showcase composes a single poster that combines gradients, masks, groups, blend modes, and the full set of layer effects into one scene.
|
Command showcase composes a single poster that combines gradients, masks, groups, blend modes, and the full set of layer effects into one scene. |
|
Package gradient generates linear, radial, angle, reflected, and diamond gradients with multi-stop color and independent per-stop opacity.
|
Package gradient generates linear, radial, angle, reflected, and diamond gradients with multi-stop color and independent per-stop opacity. |
|
internal
|
|
|
parallel
Package parallel splits row-oriented pixel work across goroutines.
|
Package parallel splits row-oriented pixel work across goroutines. |
|
Package mask defines coverage sources that scale a layer's alpha before it is composited.
|
Package mask defines coverage sources that scale a layer's alpha before it is composited. |
|
Package path builds bezier paths and rasterizes them with anti-aliased scanline coverage.
|
Package path builds bezier paths and rasterizes them with anti-aliased scanline coverage. |
|
Package raster is the substrate every other package builds on.
|
Package raster is the substrate every other package builds on. |
Click to show internal directories.
Click to hide internal directories.
