Struct comfy_core::BloodCanvas
source · pub struct BloodCanvas {
pub creator: Arc<AtomicRefCell<dyn TextureCreator + Send + Sync + 'static>>,
pub blocks: HashMap<IVec2, CanvasBlock>,
}Fields§
§creator: Arc<AtomicRefCell<dyn TextureCreator + Send + Sync + 'static>>§blocks: HashMap<IVec2, CanvasBlock>Implementations§
source§impl BloodCanvas
impl BloodCanvas
pub fn new( creator: Arc<AtomicRefCell<dyn TextureCreator + Send + Sync + 'static>> ) -> Self
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