Lines Matching refs:Color
6 color::Color,
21 data: &'a [Color],
28 type Item = &'a [Color];
48 data: &'a mut [Color],
55 type Item = &'a mut [Color];
87 data: &'a mut [Color],
92 type Item = &'a [Color];
169 data: &'a mut [Color],
175 pub fn from_data(width: i32, height: i32, data: &'a mut [Color]) -> Self { in from_data()
213 fn data(&self) -> &[Color] { in data() argument
217 fn data_mut(&mut self) -> &mut [Color] { in data_mut() argument
238 data: Box<[Color]>,
246 Image::from_color(width, height, Color::rgb(0, 0, 0)) in new()
250 pub fn from_color(width: i32, height: i32, color: Color) -> Self { in from_color()
259 pub fn from_data(width: i32, height: i32, data: Box<[Color]>) -> Self { in from_data()
289 Color::rgba(pixel[0], pixel[1], pixel[2], pixel[3]); in from_path()
338 let mut dst_color = vec![Color { data: 0 }; w as usize * h as usize].into_boxed_slice(); in resize()
370 fn data(&self) -> &[Color] { in data() argument
374 fn data_mut(&mut self) -> &mut [Color] { in data_mut() argument