Searched refs:palette (Results 1 – 2 of 2) sorted by relevance
65 pub palette: [Color; 16], field161 palette: [Default::default(); 16], in new()293 for (idx, color) in self.palette.iter_mut().enumerate() { in reset_palette()1514 self.palette[i].red = self.par[j] as u16; in do_control()1516 self.palette[i].green = self.par[j] as u16; in do_control()1518 self.palette[i].blue = self.par[j] as u16; in do_control()1521 self.palette[i].red = self.par[j] as u16; in do_control()1523 self.palette[i].green = self.par[j] as u16; in do_control()1525 self.palette[i].blue = self.par[j] as u16; in do_control()
374 let mut palette = Vec::new(); in con_set_palette() localVariable375 palette.resize(16, Color::default()); in con_set_palette()377 let vc_palette = &vc_data.palette; in con_set_palette()380 let col = palette.get_mut(idx as usize).unwrap(); in con_set_palette()389 self.fb().set_color_map(palette)?; in con_set_palette()