Skip to main content

Module encode

Module encode 

Source
Expand description

Paints for drawing shapes.

Structs§

EncodedBlurredRoundedRectangle
An encoded blurred, rounded rectangle.
EncodedExternalTexture
An encoded external texture.
EncodedGradient
An encoded gradient.
EncodedImage
An encoded image.
FocalData
Focal data for a radial gradient.
GradientCacheKey
Cache key for gradient color ramps based on color-affecting properties.
GradientLut
A lookup table for sampled gradient values.
GradientRange
An encoded range between two color stops.
LinearKind
Computed properties of a linear gradient.
SweepKind
Computed properties of a sweep gradient.

Enums§

EncodedKind
A kind of encoded gradient.
EncodedPaint
An encoded paint.
RadialKind
A radial gradient.

Constants§

MAX_GRADIENT_LUT_SIZE
The maximum size of the gradient LUT.

Traits§

EncodeExt
A trait for encoding paints.
FromF32Color
A helper trait for converting a premultiplied f32 color to Self.