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);
|
self.image = imageops::rotate90(&self.image);
|
||||||
return self.allocate_image();
|
return self.allocate_image();
|
||||||
}
|
}
|
||||||
|
Key::Character("i") => {
|
||||||
|
imageops::invert(&mut self.image);
|
||||||
|
return self.allocate_image();
|
||||||
|
}
|
||||||
|
|
||||||
// ignore unused keys
|
// ignore unused keys
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue