iced-rs/iced · error
Create linear gradient
Error message
Create linear gradient
What it means
Error "Create linear gradient" thrown in iced-rs/iced.
Source
Thrown at tiny_skia/src/engine.rs:173
)
})
.collect();
tiny_skia::LinearGradient::new(
tiny_skia::Point {
x: start.x,
y: start.y,
},
tiny_skia::Point { x: end.x, y: end.y },
if stops.is_empty() {
vec![tiny_skia::GradientStop::new(0.0, tiny_skia::Color::BLACK)]
} else {
stops
},
tiny_skia::SpreadMode::Pad,
tiny_skia::Transform::identity(),
)
.expect("Create linear gradient")
}
},
anti_alias: true,
..tiny_skia::Paint::default()
},
tiny_skia::FillRule::EvenOdd,
transform,
clip_mask,
);
if border_width > 0.0 {
// Border path is offset by half the border width
let border_bounds = Rectangle {
x: quad.bounds.x + border_width / 2.0,
y: quad.bounds.y + border_width / 2.0,
width: quad.bounds.width - border_width,
height: quad.bounds.height - border_width,
};View on GitHub (pinned to 2cffa99b39)
When it happens
Trigger: Thrown at tiny_skia/src/engine.rs:173 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of iced-rs/iced@2cffa99b39 (2026-08-16).
Data as JSON: /api/errors/af7e868434154900.
Report an issue: GitHub.