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.
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?
Post your nifty GP projects here!
2 posts • Page 1 of 1