Function console_engine::pixel::pxl_fbg[][src]

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

Generate a pixel using a character, a foreground and background color

usage:

use console_engine::pixel;
use console_engine::Color;
// ...
engine.set_pxl(0,0,pixel::pxl_fbg('X', Color::Blue, Color::White));