Cartoon Animation
- Processing Examples (File, Examples)
- Topics, Animation, Sequential. (Press enter or click to open)
- Run the program, see 8 images in the window.
- Simplify to understand what’s happening:
(You can run the program after each change.)
- Line 45: change -100 to 100
- Line 45: change “width” (the first one) to 300
- Line 46: change -20 to 20
- Comment out line 48 with // at the beginning.
- Save the program to e.g. Animation_<yourname> (don’t type the <>)
- Run the program
- Modify the Animation:
- Line 17 see the list of picture files.
- Sketch, Show Sketch Folder
- Navigate into the data folder
- Open one of the files with Paint, make a small visible change and save.
- Re-run the Processing program, see your change.
- Another Picture
- In Paint make another change and save to file 12.
- Make sure the new filename is exactly the same case as others. gif not GIF.
- Line 28, copy and paste it to make an extra line
- On the new line change 11 to 12 twice.
- Line 9, change 12 to 13.
- Re-run the program and see your additions.
- -------------