Expand description
Ported from Arc (MIT) © 2026 Elia Kuratli
Gradients (linear via GPUI, radial/conic via PathBuilder tessellation) and mask-image
edge-fade quad overlays (used by scrollable TabsList, ScrollArea, etc.).
Structs§
- Conic
Gradient Spec - Conic gradient painted with angular wedges via GPUI
PathBuilder. - Edge
Fade Mask - Emulates CSS
mask-image: linear-gradient(...)edge fades by painting a gradient quad from the container’s background color to transparent on the requested edge. - Gradient
Stop - Color stop
(position in 0.0..=1.0, color). - Radial
Gradient Spec - Radial gradient painted with concentric polygon rings via GPUI
PathBuilder.
Enums§
- Edge
Fade Side - Which side an edge fade mask overlays.
Functions§
- paint_
conic_ gradient - paint_
radial_ gradient - sample_
stops - Samples a multi-stop gradient at
tin0.0..=1.0.