🐛 Fix blend mode against background

This commit is contained in:
Belén Albeza 2024-12-11 16:48:41 +01:00
parent 579a5729e6
commit 21da6ddd4a
5 changed files with 34 additions and 2 deletions

View file

@ -1,4 +1,6 @@
use std::collections::HashMap;
use skia_safe as skia;
use uuid::Uuid;
use crate::render::RenderState;
@ -57,4 +59,9 @@ impl<'a> State<'a> {
pub fn current_shape(&'a mut self) -> Option<&'a mut Shape> {
self.current_shape.as_deref_mut()
}
pub fn set_background_color(&mut self, color: skia::Color) {
self.render_state.set_background_color(color);
self.render_all(true);
}
}