Searched refs:col (Results 1 – 5 of 5) sorted by relevance
253 pub fn from_256(col: u32) -> Self { in from_256()255 if col < 8 { in from_256()256 color.red = if col & 1 != 0 { 0xaa } else { 0x00 }; in from_256()257 color.green = if col & 2 != 0 { 0xaa } else { 0x00 }; in from_256()258 color.blue = if col & 4 != 0 { 0xaa } else { 0x00 }; in from_256()259 } else if col < 16 { in from_256()260 color.red = if col & 1 != 0 { 0xff } else { 0x55 }; in from_256()261 color.green = if col & 2 != 0 { 0xff } else { 0x55 }; in from_256()262 color.blue = if col & 4 != 0 { 0xff } else { 0x55 }; in from_256()263 } else if col < 232 { in from_256()[all …]
287 let mut col: bool = false; in handle_type3() localVariable331 col = true; in handle_type3()339 col = !col; in handle_type3()342 let mut ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize]; in handle_type3()
10 pub col: u16, field19 pub const fn new(row: u16, col: u16, xpixel: u16, ypixel: u16) -> Self { in new()22 col, in new()
66 let col = self.mono_color(); in get_color() localVariable70 fg = col; in get_color()74 bg = col; in get_color()384 let col = palette.get_mut(idx as usize).unwrap(); in con_set_palette() localVariable385 col.red = (vc_palette[i].red << 8) | vc_palette[i].red; in con_set_palette()386 col.green = (vc_palette[i].green << 8) | vc_palette[i].green; in con_set_palette()387 col.blue = (vc_palette[i].blue << 8) | vc_palette[i].blue; in con_set_palette()
408 Some(tty.core().window_size().col.into()), in install()