Crate rgb2vga

Crate rgb2vga 

Source
Expand description

§rgb2vga

An RGB pixel to VGA color converter implemented in rust. This crate can be runned also in a no-std environment.

use rgb2vga::rgb2vga;

fn main() {
  let rgb = (250, 128, 114);
  let vga = rgb2vga(rgb);
  // do other things
}

§Examples

cargo run --example simple
cargo run --example std

Statics§

NDX_VGAPAL

Functions§

rgb2vga