INNER CODE UNIT · Rust
foreground
lemunozm/ruscii · src/drawing.rs:204
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;
self
}
/// Moves the origin by the given `displacement`.