INNER CODE UNIT · Rust
move_origin
lemunozm/ruscii · src/drawing.rs:222
pub fn move_origin(&mut self, displacement: Vec2) -> &mut Pencil<'a> {
self.origin += displacement;
self
}
pub fn set_foreground(&mut self, color: Color) -> &mut Pencil<'a> {
self.foreground = color;
self
}
pub fn set_background(&mut self, color: Color) -> &mut Pencil<'a> {
self.background = color;
self
}
pub fn set_style(&mut self, style: Style) -> &mut Pencil<'a> {
self.style = style;
self