Function console_engine::pixel::pxl_bg[][src]

pub fn pxl_bg(value: char, bg: Color) -> Pixel

Generate a pixel using a character and a background color.
Foreground color is always White.

usage:

use console_engine::pixel;
use console_engine::Color;
// ...
engine.set_pxl(0,0,pixel::pxl_bg('X', Color::Magenta));