Page 1 of 1

Mirrors

Posted: Nov 14th, '15, 19:06
by mguzdial
I created a new extension that, given a pixel, returns the X and Y positions of the pixel. This allows you to walk through each pixel, ask it its x and y, then do something based on that. One of the most fun things to do with it is mirroring.
mirrorleft2right.png
Turns:
unmirrored.png
unmirrored.png (42.78 KiB) Viewed 6125 times
into:
mirrored.png
mirrored.png (41.38 KiB) Viewed 6125 times
The attached "mirrors.gpp" project includes as specialized blocks copying top to bottom, mirroring top to bottom, and copying left to right.

Given these patterns, it's an interesting exercise to figure out mirroring bottom to top and mirroring right to left.

All of these divide by 2 to get the mirrorpoint. Have students divide by 3 or 4. What's that doing?

Re: Mirrors

Posted: Nov 14th, '15, 19:23
by JohnM
Very nice!