{"record":{"id":"15a6c0d82af082c1","repo":"iced-rs/iced","slug":"create-color-15a6c0","errorCode":null,"errorMessage":"Create color","messagePattern":"Create color","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"tiny_skia/src/geometry.rs","lineNumber":397,"sourceCode":"        }\n    }\n\n    let result = builder.finish();\n\n    #[cfg(debug_assertions)]\n    if result.is_none() {\n        log::warn!(\"Invalid path: {:?}\", path.raw());\n    }\n\n    result\n}\n\npub fn into_paint(style: Style) -> tiny_skia::Paint<'static> {\n    tiny_skia::Paint {\n        shader: match style {\n            Style::Solid(color) => tiny_skia::Shader::SolidColor(\n                tiny_skia::Color::from_rgba(color.b, color.g, color.r, color.a)\n                    .expect(\"Create color\"),\n            ),\n            Style::Gradient(gradient) => match gradient {\n                Gradient::Linear(linear) => {\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                            )","sourceCodeStart":379,"sourceCodeEnd":415,"githubUrl":"https://github.com/iced-rs/iced/blob/2cffa99b395d84fe469b44dccb56bbacd2f1a157/tiny_skia/src/geometry.rs#L379-L415","documentation":"Error \"Create color\" thrown in iced-rs/iced.","triggerScenarios":"Thrown at tiny_skia/src/geometry.rs:397 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"}