INNER CODE UNIT · Rust
background
lemunozm/ruscii · src/drawing.rs:208
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;
self
}
/// Moves the origin by the given `displacement`.
pub fn move_origin(&mut self, displacement: Vec2) -> &mut Pencil<'a> {
self.origin += displacement;
self
}