INNER CODE UNIT · Rust
dimension
lemunozm/ruscii · src/drawing.rs:200
pub fn dimension(&self) -> Vec2 {
self.canvas.dimension() - self.origin
}
pub fn foreground(&self) -> &Color {
&self.foreground
}
pub fn background(&self) -> &Color {
&self.background
}
pub fn style(&self) -> &Style {
&self.style
}
pub fn set_origin(&mut self, position: Vec2) -> &mut Pencil<'a> {
self.origin = position;