blit_transparent

Function blit_transparent 

Source
pub fn blit_transparent<S: AsRef<str>>(src: S, blank: char, x: u32, y: u32)
Expand description

Draw a “texture” onto the screen, skipping over spaces. Replaces all blanks with actual spaces.

Example:


// prints `foobar`
cod::blit("foobar", 0, 0);
// updates to `to ban`
cod::blit_transparent("t _  n", '_', 0, 0);