Day 54
Day 54 ๊ด๋ จ
Project 13, part three
Isnโt Core Image amazing? We only dabbled with a handful of effects, but even then it can do things in real-time that would take weeks if not months to code by hand. Even better, it automatically takes full advantage of the GPU and Metal, so youโre guaranteed maximum performance even though we barely wrote any code.
I hope this has given you the taste for exploration. The challenges youโll be completing today focus on enhancing what you have, but I really do encourage you to look up the list of Core Image filters and try some of them out. Itโs fun, youโll learn stuff, and youโll really embed your new Core Image knowledge deep inside your brain.
Nate Berkus, a famous American interior designer, once said โyou will enrich your life immeasurably if you approach it with a sense of wonder and discovery, and always challenge yourself to try new things.โ Well, this is your chance: step out into the world of Core Image, allow yourself to be playful for a while, and see what you can create!
Today you should work through the wrap up chapter for project 13, complete its review, then work through all three of its challenges.
Wrap up
Wrap up
This has been the briefest possible introduction to Core Image, yet we still managed to make something useful, using UISlider
for the first time and even writing images to the photo album.
Unless you really do intend to make Yet Another Core Image Filters Program (best of luck!) your use of Core Image will mostly be about manipulating a picture in a very specific way, using a filter you have hand-crafted to look great.
If you want to try other filters, search on Google for "Core Image Filter Reference" and have a read โ it will list the input keys for each of them so that you can get really fine-grained control over the filters.
Review what you learned
Anyone can sit through a tutorial, but it takes actual work to remember what was taught. Itโs my job to make sure you take as much from these tutorials as possible, so Iโve prepared a short review to help you check your learning.
Click here to review what you learned in project 13.
Challenge
One of the best ways to learn is to write your own code as often as possible, so here are three ways you should try your new knowledge to make sure you fully understand whatโs going on:
- Try making the Save button show an error if there was no image in the image view.
- Make the Change Filter button change its title to show the name of the currently selected filter.
- Experiment with having more than one slider, to control each of the input keys you care about. For example, you might have one for radius and one for intensity.
Wrap up - Additional
Thatโs another project finished, and one that should be able to make some really interesting and experimental images! This is a great point to share your progress with others.