pub fn new(fg: Color, bg: Color) -> Self {
    let fgi = color_to_i16(fg);
    let bgi = color_to_i16(bg);
    ColorPair(ColorPair::fgbg_pairid(fgi, bgi))
  }
/// Creates a new `ColorPair` given a foreground and background.
Creates a new `ColorPair` given a foreground and background.
Creates a new ` ColorPair ` given a foreground and background .
pub fn new(fg: Color, bg: Color) -> Self {
    let fgi = color_to_i16(fg);
    let bgi = color_to_i16(bg);
    ColorPair(ColorPair::fgbg_pairid(fgi, bgi))
  }
pub fn new ( fg : Color , bg : Color ) -> Self { let fgi = color_to_i16 ( fg ) ; let bgi = color_to_i16 ( bg ) ; ColorPair ( ColorPair :: fgbg_pairid ( fgi , bgi ) ) }
Creates a new `ColorPair` given a foreground and background.
Creates a new ` ColorPair ` given a foreground and background .
fg
Color
bg
Color
fg
Color
bg
Color