Add controls for stroke width

This commit is contained in:
Maximilian Ammann 2021-12-09 18:11:16 +01:00
parent b762b33fd0
commit 1fceef1dc3

View File

@ -424,7 +424,19 @@ impl State {
..
},
..
} => self.camera_controller.process_keyboard(*key, *state),
} => {
match key {
winit::event::VirtualKeyCode::Z => {
self.scene.target_stroke_width *= 1.2;
true
}
winit::event::VirtualKeyCode::H => {
self.scene.target_stroke_width *= 0.8;
true
}
_ => self.camera_controller.process_keyboard(*key, *state)
}
},
WindowEvent::MouseWheel { delta, .. } => {
self.camera_controller.process_scroll(delta);
true