Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Add blood_pixel_at
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Apr 19, 2024
1 parent fa6dd33 commit a24994d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions comfy-wgpu/src/blood_canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a24994d

Please sign in to comment.