Home
last modified time | relevance | path

Searched refs:scale (Results 1 – 3 of 3) sorted by relevance

/StarryEngine/starry_client/src/base/
H A Dcolor.rs47 pub fn interpolate(from_color: Color, to_color: Color, scale: f64) -> Color { in interpolate()
48 let r = Color::value_interpolate(from_color.r(), to_color.r(), scale); in interpolate()
49 let g = Color::value_interpolate(from_color.r(), to_color.r(), scale); in interpolate()
50 let b = Color::value_interpolate(from_color.r(), to_color.r(), scale); in interpolate()
51 let a = Color::value_interpolate(from_color.r(), to_color.r(), scale); in interpolate()
56 fn value_interpolate(from_value: u8, to_value: u8, scale: f64) -> u8 { in value_interpolate()
57 ((to_value as f64 - from_value as f64) * scale + from_value as f64) as u8 in value_interpolate()
/StarryEngine/starry_server/src/base/
H A Dwindow.rs28 pub scale: i32, field
50 pub fn new(x: i32, y: i32, _w: i32, _h: i32, scale: i32, image_path: &[u8]) -> Window { in new()
54 scale: scale, in new()
/StarryEngine/starry_server/src/core/input/
H A Dinputs.rs52 scale: u8, field
65 scale: 1, in new()
118 dx: self.dx as i32 * self.scale as i32, in handle()
119 dy: self.dy as i32 * self.scale as i32, in handle()