[][src]Function console_engine::pixel::pxl_fg

pub fn pxl_fg<C: Color>(value: char, fg: C) -> Pixel

Generate a pixel using a character and a foreground color.
Background color is always black.

usage:

use console_engine::pixel;
use termion::color;
// ...
engine.set_pxl(0,0,pixel::pxl_fg('X', color::Cyan));