Bingo! Thanks, Frances. It's not hard to do at all.
Below, I made the magenta rectangle, then Ctrl G grouped it. Made my erase on it, then went to the Page/layer gallery and selected the erase area (Opacity mask group > Opacity mask), and changed its color to a gray, like you said. Put a yellow rectangle behind the magenta one, and, it works!
Bookmarks