INNER CODE UNIT · Rust
set_background
lemunozm/ruscii · src/drawing.rs:232
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
}
/// Draws a character at the given `position` according to the previously set text style options.
///
/// Returns the receiver for chaining.
pub fn draw_char(&mut self, value: char, position: Vec2) -> &mut Pencil<'a> {
self.draw_element(self.origin + position, value);
self
}