Crate peniko

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;
pub use linebender_resource_handle;

Structs§

BlendMode
Blend mode consisting of color mixing and composition functions.
Blob
Re-export of the linebender resource handle library types. Shared data with an associated unique identifier.
ColorStop
Offset and color of a transition point in a gradient.
ColorStops
Collection of color stops.
FontData
Re-export of the linebender resource handle library types. Owned shareable font resource.
Gradient
Definition of a gradient that transitions between two or more colors.
ImageBrush
Describes the image content of a filled or stroked shape.
ImageData
Owned shareable image resource.
ImageSampler
Parameters which specify how to sample an image during rendering.
LinearGradientPosition
Parameters that define the position of a linear gradient.
RadialGradientPosition
Parameters that define the position of a radial gradient.
SweepGradientPosition
Parameters that define the position of a sweep gradient.
WeakBlob
Re-export of the linebender resource handle library types. Weak reference to a shared blob.

Enums§

Brush
Describes the color content of a filled or stroked shape.
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.
ImageAlphaType
Handling of alpha channel.
ImageFormat
Defines the pixel format of an image.
ImageQuality
Defines the desired quality for sampling an image.
InterpolationAlphaSpace
Defines how color channels should be handled when interpolating between transparent colors.
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§

BrushRef
Reference to a brush.
Color
A convenient alias for the color type used for Brush.
ImageBrushRef
Borrowed version of ImageBrush for avoiding reference counting overhead.