Transparent erasers

Added round erasers that only expose 25% of the background each
time you click and apply the eraser.

Reworked how erasers are handled in the code to make it easier
to add this.

Reworked how eraser icons are drawn in the selector on the right.
(Squares and non-fuzzy, non-transparent circles are solid;
fuzzy circles are solid in the center with a dithered edge;
transparent circles are entirely dithered.)

TODO
 * Document the new eraser type
 * Remove a visual artfact (XOR outline) when using Ctrl-Z to Undo
 * Eraser icons turn from black to white when temporarily switching
   to certain other tools (e.g., after prompts like Quit or Print,
   or after using Save)
This commit is contained in:
Bill Kendrick 2024-03-15 18:53:13 -07:00
parent d74b149be8
commit f85e2c3519
2 changed files with 161 additions and 98 deletions

View file

@ -6,7 +6,7 @@ Copyright (c) 2002-2024
Various contributors (see below, and AUTHORS.txt)
https://tuxpaint.org/
2024.February.29 (0.9.33)
2024.March.15 (0.9.33)
* New Magic Tools:
----------------
* WIP Specular Reflection: Draws a slightly blurred, wavy, and
@ -25,6 +25,13 @@ https://tuxpaint.org/
+ WIP Needs icon
+ WIP Needs sound effect
* Improvements to Eraser tool:
----------------------------
* WIP Transparent eraser
Bill Kendrick <bill@newbreedsoftware.com>
+ WIP Needs docs
+ WIP Add to new features lists
* Other Improvements:
-------------------
* Make screen refresh more snappy on macOS.