Does anyone know a general algorithm to accomplish this, or even some source code?
Ideally, it'd be customizable, eg; number of sides/reflections, selecting what part of the image to sample for the kaleidoscope, etc
Does anyone know a general algorithm to accomplish this, or even some source code?
Ideally, it'd be customizable, eg; number of sides/reflections, selecting what part of the image to sample for the kaleidoscope, etc
Copyright © 2021 Jogjafile Inc.

Here is a simple kaleidoscopic effect. One merges the image with its transpose using a diagonal bi-tonal mask. Then flip it horizontally and concatenate horizontally. Then flip that vertically and concatenate vertically. Finally resize by 50% back to the input size. The image must be square (or cropped square -- not included).
There are two arguments that allow variations. One is to invert the mask. The other is to do a rotation by multiples of 90 degrees to the merged image.
Input:
Mask:
Kaleidoscope Result: