Through some experimentation and thinking, I think I finally got the