I found it rather difficult to add three-color symmetry to rotational symmetry and had to do the theory of the post “color symmetry upon rotation“. Then, programming was quite easy. In the end we combine a periodic or quasi-periodic anamorphic image with a mask that switches between the different color variants. This makes it difficult to make interesting images.
For periodic images with three- or six-fold rotational symmetry I use sums of several wave packages to get nontrivial color symmetry. This is an example:
For quasi-periodic images a single wave package gives already an interesting color switching pattern. This is an example with 12-fold rotational symmetry:
The center of perfect 12-fold rotational symmetry lies at the lower left corner. See how it has quasi-periodically repeated approximate copies.