♻️ Refactor blend mode and fills into their own submodules

This commit is contained in:
Belén Albeza 2024-11-29 11:46:45 +01:00
parent 2d4281bdf2
commit 00ab9ad3f0
5 changed files with 116 additions and 109 deletions

View file

@ -154,7 +154,7 @@ pub extern "C" fn add_shape_solid_fill(raw_color: u32) {
let state = unsafe { STATE.as_mut() }.expect("got an invalid state pointer");
if let Some(shape) = state.current_shape() {
let color = skia::Color::new(raw_color);
shape.add_fill(shapes::Fill::from(color));
shape.add_fill(shapes::Fill::Solid(color));
}
}