Crate peniko

Source
Expand description

A Rust 2D graphics type library

The peniko library builds on top of kurbo and color and provides a set of generic types that define styles for rendering and composition.

The name “peniko” is Esperanto for “brush” which is one family of types that the library contains.

Re-exports§

pub use color;
pub use kurbo;

Structs§

BlendMode
Blend mode consisting of color mixing and composition functions.
Blob
Shared data with an associated unique identifier.
ColorStop
Offset and color of a transition point in a gradient.
ColorStops
Collection of color stops.
Font
Owned shareable font resource.
Gradient
Definition of a gradient that transitions between two or more colors.
Image
Owned shareable image resource.
WeakBlob
Weak reference to a shared blob.

Enums§

Brush
Describes the color content of a filled or stroked shape.
BrushRef
Reference to a brush.
Compose
Defines the layer composition function for a blend operation.
Extend
Defines how a brush is extended when the content does not fill a shape.
Fill
Describes the rule that determines the interior portion of a shape.
GradientKind
Properties for the supported gradient types.
ImageFormat
Defines the pixel format of an image.
ImageQuality
Defines the desired quality for sampling an image.
Mix
Defines the color mixing function for a blend operation.
Style
Describes draw style– either a fill or stroke.
StyleRef
Reference to a draw style.

Traits§

ColorStopsSource
Trait for types that represent a source of color stops.

Type Aliases§

Color
A convenient alias for the color type used for Brush.