Expand description
Contains the universal vector graphics interface.
Modules§
- color
- Color is a Rust crate which implements color space conversions, targeting at least CSS Color Level 4.
- dummy
- Contains the dummy::DummyGraphics & dummy::DummyGraphics structs.
- kurbo
- 2D geometry, with a focus on curves.
- linebender_
resource_ handle - Linebender Resource Handle provides functionality for storing blobs of data and an associated ID.
This primitive is adapted in Peniko to store images, but the
FontDatatype lives in this crate. This crate is designed to allow making semver incompatible releases of Parley and Vello, whilst allowing them to be cross-compatible.
Structs§
- Blend
Mode - Blend mode consisting of color mixing and composition functions.
- Blob
- Shared data with an associated unique identifier.
- Color
Stop - Offset and color of a transition point in a gradient.
- Color
Stops - Collection of color stops.
- Font
Data - Owned shareable font resource.
- Gradient
- Definition of a gradient that transitions between two or more colors.
- Image
Brush - Describes the image content of a filled or stroked shape.
- Image
Data - Owned shareable image resource.
- Image
Sampler - Parameters which specify how to sample an image during rendering.
- Linear
Gradient Position - Parameters that define the position of a linear gradient.
- Radial
Gradient Position - Parameters that define the position of a radial gradient.
- Sweep
Gradient Position - Parameters that define the position of a sweep gradient.
- Weak
Blob - 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.
- Gradient
Kind - Properties for the supported gradient types.
- Image
Alpha Type - Handling of alpha channel.
- Image
Format - Defines the pixel format of an image.
- Image
Quality - Defines the desired quality for sampling an image.
- Interpolation
Alpha Space - 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.
- Style
Ref - Reference to a draw style.
Traits§
- Color
Stops Source - Trait for types that represent a source of color stops.
- Scene
- An interface for drawing vector graphics onto a canvas.
- Vector
Graphics Interface - A trait describing ways to render vector graphics.
Type Aliases§
- Brush
Ref - Reference to a brush.
- Color
- A convenient alias for the color type used for
Brush. - Image
Brush Ref - Borrowed version of
ImageBrushfor avoiding reference counting overhead.