This reminds me a bit of one mode (squared) from Picture Enigmas (https://picture-enigmas.com/#features) which I like to play from time to time.