From a24994d8f4c1068b4f14baf65a403286471eceba Mon Sep 17 00:00:00 2001 From: Jakub Arnold Date: Fri, 19 Apr 2024 17:22:42 +0200 Subject: [PATCH] Add blood_pixel_at --- comfy-wgpu/src/blood_canvas.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comfy-wgpu/src/blood_canvas.rs b/comfy-wgpu/src/blood_canvas.rs index 3962952..284c294 100644 --- a/comfy-wgpu/src/blood_canvas.rs +++ b/comfy-wgpu/src/blood_canvas.rs @@ -29,6 +29,10 @@ pub fn blood_canvas_reset() { BLOOD_CANVAS.get().unwrap().borrow_mut().blocks = HashMap::default(); } +pub fn blood_pixel_at(position: Vec2, color: Color) { + BLOOD_CANVAS.get().unwrap().borrow_mut().set_pixel(position, color); +} + pub fn blood_circle_at( position: Vec2, radius: i32,