Seamless 4 way mirror from images
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Seamless 4 way mirror from images
A long time ago Wilhelm Sanke did a Seamless Mirror stack that uses a rectangular selection from an image to do a "Seamless Mirror" i.e. the rectangle is flipped horizontally and then both the original rectangle and the flipped rectangle are flipped vertically. Those mirrors are used to fill the image.
Since Wilhelm had password protected his stack I reverse engineered the effect. While coding I tried to make it as fast as possible. Wilhelm at the time did amazing things regarding image manipulation.
There is a selection "tool" which lets you choose the area of interest and a live preview of the resulting mirror. Use it also to generate smaller selections and even one pixel high and a couple of pixels wide etc to get interesting effects. Spoiler: a 1 by 1 pixel selection gives you a monochrome mirror.
It can be quite addictive to generate those mirrors and marvel at the resulting image.
For the stack I used just a very small image to see what happens but it is advised to import a larger image/s to experiment. You can also drag-drop images on the central image to import them. Additionally there is an option to export the resulting pattern in case you want to use it as wallpaper...
Kind regards
Bernd
Since Wilhelm had password protected his stack I reverse engineered the effect. While coding I tried to make it as fast as possible. Wilhelm at the time did amazing things regarding image manipulation.
There is a selection "tool" which lets you choose the area of interest and a live preview of the resulting mirror. Use it also to generate smaller selections and even one pixel high and a couple of pixels wide etc to get interesting effects. Spoiler: a 1 by 1 pixel selection gives you a monochrome mirror.
It can be quite addictive to generate those mirrors and marvel at the resulting image.
For the stack I used just a very small image to see what happens but it is advised to import a larger image/s to experiment. You can also drag-drop images on the central image to import them. Additionally there is an option to export the resulting pattern in case you want to use it as wallpaper...
Kind regards
Bernd
- Attachments
-
- SeamlessMirror_0_5.livecode.zip
- (121.05 KiB) Downloaded 189 times
-
- Posts: 670
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Seamless 4 way mirror from images
Nice work (as usual) Bernd!bn wrote: ↑Mon Mar 28, 2022 2:22 pmA long time ago Wilhelm Sanke did a Seamless Mirror stack that uses a rectangular selection from an image to do a "Seamless Mirror" i.e. the rectangle is flipped horizontally and then both the original rectangle and the flipped rectangle are flipped vertically. Those mirrors are used to fill the image.
Since Wilhelm had password protected his stack I reverse engineered the effect. While coding I tried to make it as fast as possible. Wilhelm at the time did amazing things regarding image manipulation.
There is a selection "tool" which lets you choose the area of interest and a live preview of the resulting mirror. Use it also to generate smaller selections and even one pixel high and a couple of pixels wide etc to get interesting effects. Spoiler: a 1 by 1 pixel selection gives you a monochrome mirror.
It can be quite addictive to generate those mirrors and marvel at the resulting image.
For the stack I used just a very small image to see what happens but it is advised to import a larger image/s to experiment. You can also drag-drop images on the central image to import them. Additionally there is an option to export the resulting pattern in case you want to use it as wallpaper...
Kind regards
Bernd
Saving this to examine later. I'd wanted to do a mirror image effect for a scrolling image group, like Apple's no longer used "Cover Flow" view, a long time ago now, and I did a few experiments. I'll have to dig those out to compare.
Thanks for sharing!
-
- Livecode Opensource Backer
- Posts: 9762
- Joined: Fri Feb 19, 2010 10:17 am
Re: Seamless 4 way mirror from images
Surely for the latter it would involve a series of
snapshots . . .
snapshots . . .
-
- Posts: 670
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Seamless 4 way mirror from images
?richmond62 wrote: ↑Mon Mar 28, 2022 4:37 pmSurely for the latter it would involve a series of
snapshots . . .
or putting a copy of the image data / image text of one image control into another and transforming it?
For "coverFlow" you would then overlay a vignette to fade out the mirrored, flipped / 180 agree rotate copy of the image.
I couldn't get the 3D turning over effect going in a way that satisfied me though, I think that's why I gave up on it.
Could probably just use some JS / CSS in a Browser Widget to do that so I figured why reinvent the wheel?
I may take another crack at it as a Builder Extension someday.
Re: Seamless 4 way mirror from images
Bernd, that's pretty spectacular - always humbled when looking at your stacks!
Re: Seamless 4 way mirror from images
Thank you all for your nice comments.
Kind regards
Bernd
Kind regards
Bernd
Re: Seamless 4 way mirror from images
Marvelous! I played with it way too long. This thing could make some interesting desktop wallpapers.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 670
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: Seamless 4 way mirror from images
I second that, it reminds me a bit of some little "Desk Accessory" (I'm System 6 old) utility that I had way back when that generated random patterns for seamless tiles.