feat: invert image
This commit is contained in:
parent
f32263df62
commit
ef42175744
1 changed files with 4 additions and 0 deletions
|
|
@ -80,6 +80,10 @@ impl State {
|
|||
self.image = imageops::rotate90(&self.image);
|
||||
return self.allocate_image();
|
||||
}
|
||||
Key::Character("i") => {
|
||||
imageops::invert(&mut self.image);
|
||||
return self.allocate_image();
|
||||
}
|
||||
|
||||
// ignore unused keys
|
||||
_ => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue