Struct comfy_wgpu::BloodCanvas
source · pub struct BloodCanvas {
pub creator: Arc<AtomicRefCell<dyn TextureCreator + Send + Sync>, Global>,
pub blocks: HashMap<IVec2, CanvasBlock, RandomState>,
}Fields§
§creator: Arc<AtomicRefCell<dyn TextureCreator + Send + Sync>, Global>§blocks: HashMap<IVec2, CanvasBlock, RandomState>Implementations§
source§impl BloodCanvas
impl BloodCanvas
pub fn new( creator: Arc<AtomicRefCell<dyn TextureCreator + Send + Sync>, Global> ) -> BloodCanvas
pub fn set_pixel(&mut self, position: Vec2, color: Color)
pub fn circle_at_internal( &mut self, position: Vec2, radius: i32, pixel_prob: f32, color: fn() -> Color )
pub fn blit_at( &mut self, texture: TextureHandle, position: Vec2, source_rect: Option<IRect>, tint: Color )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BloodCanvas
impl Send for BloodCanvas
impl Sync for BloodCanvas
impl Unpin for BloodCanvas
impl !UnwindSafe for BloodCanvas
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more