feat: invert image

This commit is contained in:
electria 2026-06-28 18:14:13 -07:00
commit ef42175744
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -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
_ => {}