{"record":{"id":"af7e868434154900","repo":"iced-rs/iced","slug":"create-linear-gradient","errorCode":null,"errorMessage":"Create linear gradient","messagePattern":"Create linear gradient","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"tiny_skia/src/engine.rs","lineNumber":173,"sourceCode":"                                )\n                            })\n                            .collect();\n\n                        tiny_skia::LinearGradient::new(\n                            tiny_skia::Point {\n                                x: start.x,\n                                y: start.y,\n                            },\n                            tiny_skia::Point { x: end.x, y: end.y },\n                            if stops.is_empty() {\n                                vec![tiny_skia::GradientStop::new(0.0, tiny_skia::Color::BLACK)]\n                            } else {\n                                stops\n                            },\n                            tiny_skia::SpreadMode::Pad,\n                            tiny_skia::Transform::identity(),\n                        )\n                        .expect(\"Create linear gradient\")\n                    }\n                },\n                anti_alias: true,\n                ..tiny_skia::Paint::default()\n            },\n            tiny_skia::FillRule::EvenOdd,\n            transform,\n            clip_mask,\n        );\n\n        if border_width > 0.0 {\n            // Border path is offset by half the border width\n            let border_bounds = Rectangle {\n                x: quad.bounds.x + border_width / 2.0,\n                y: quad.bounds.y + border_width / 2.0,\n                width: quad.bounds.width - border_width,\n                height: quad.bounds.height - border_width,\n            };","sourceCodeStart":155,"sourceCodeEnd":191,"githubUrl":"https://github.com/iced-rs/iced/blob/2cffa99b395d84fe469b44dccb56bbacd2f1a157/tiny_skia/src/engine.rs#L155-L191","documentation":"Error \"Create linear gradient\" thrown in iced-rs/iced.","triggerScenarios":"Thrown at tiny_skia/src/engine.rs:173 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2cffa99b395d84fe469b44dccb56bbacd2f1a157","analyzedAt":"2026-08-16T19:41:49.083Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}