{"record":{"id":"5955a9ffec577cac","repo":"iced-rs/iced","slug":"create-color","errorCode":null,"errorMessage":"Create color","messagePattern":"Create color","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"tiny_skia/src/engine.rs","lineNumber":154,"sourceCode":"                shader: match background {\n                    Background::Color(color) => tiny_skia::Shader::SolidColor(into_color(*color)),\n                    Background::Gradient(Gradient::Linear(linear)) => {\n                        let (start, end) = quad.bounds.chord(linear.angle);\n\n                        let stops: Vec<tiny_skia::GradientStop> = linear\n                            .stops\n                            .into_iter()\n                            .flatten()\n                            .map(|stop| {\n                                tiny_skia::GradientStop::new(\n                                    stop.offset,\n                                    tiny_skia::Color::from_rgba(\n                                        stop.color.b,\n                                        stop.color.g,\n                                        stop.color.r,\n                                        stop.color.a,\n                                    )\n                                    .expect(\"Create color\"),\n                                )\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                        )","sourceCodeStart":136,"sourceCodeEnd":172,"githubUrl":"https://github.com/iced-rs/iced/blob/2cffa99b395d84fe469b44dccb56bbacd2f1a157/tiny_skia/src/engine.rs#L136-L172","documentation":"Error \"Create color\" thrown in iced-rs/iced.","triggerScenarios":"Thrown at tiny_skia/src/engine.rs:154 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"}