A simple animation test
Inspired by Click to form an image and move dot between 2 points jframe, written using Swift on macOS.
This is based on the Java/Swing version
This is an experiment
Why not? This is an experiment in animation and it's annoyingly fun.
One thing to remember, this example is animating the pixles of a 300x300 image (90000 individual objects)
The first approach was to try and see if we could animate all 90, 000 pixels using either direct drawing or using (really small) NSView
s. Neither approach worked
The second approach was to make a pixelated version of the image and animated the blocks instead (reducing the amount which needs to be animated). This is done via basic view/core animation workflows (not overly optimised)
Would be to look at Sprit and Scene Kits