Module gradient

Source

Re-exportsยง

pub use linear::MAX_CACHED_SIZE as LINEAR_MAX_CACHED_SIZE;
pub use linear::*;
pub use radial::*;
pub use conic::*;

Modulesยง

conic ๐Ÿ”’
Conic gradients
linear ๐Ÿ”’
Linear gradients
radial ๐Ÿ”’
Radial gradients

Structsยง

GradientDataEntry ๐Ÿ”’
An entry in a gradient data table representing a segment of the gradient color space.
GradientGpuBlockBuilder
GradientStopKey
A hashable gradient stop that can be used in primitive keys.

Enumsยง

GradientKind

Constantsยง

GRADIENT_DATA_FIRST_STOP
GRADIENT_DATA_LAST_STOP
GRADIENT_DATA_SIZE
GRADIENT_DATA_TABLE_BEGIN
GRADIENT_DATA_TABLE_END
GRADIENT_DATA_TABLE_SIZE

Functionsยง

apply_gradient_local_clip
gpu_gradient_stops_blocks ๐Ÿ”’
stops_and_min_alpha ๐Ÿ”’
write_gpu_gradient_stops_header_and_colors ๐Ÿ”’
write_gpu_gradient_stops_linear ๐Ÿ”’
Builds the gpu representation for common gradient parameters and returns whether the gradient is fully opaque.
write_gpu_gradient_stops_tree ๐Ÿ”’