Saw this: https://hackaday.com/2021/04/13/alien-art-drawn-with-surprisingly-simple-math/
The magic line is:
assign rrggbb = ((x_px ^ y_px) % 10'd9) == 1 ? 6'b111111 : 6'b000000;
And made an FPGA implementation.
Ensure that you have libsdl2-dev and verilator installed.
sudo apt-get install libsdl2-dev libsdl2-image-dev verilator
To run the simulation use the following commands:
cd rtl
make verilator && ./obj_dir/Vxor
It's setup to run on 1 Bit Squared icebreaker with my VGA pmod plugged into pmod1a.
type
make prog
to build & upload to the icebreaker
This software and hardware is licensed under the Apache License version 2