// 次々と消していく@コードを学ぼう3 // a - e はそれぞれ動物の emoji let animals = [a, b, c, d, e] func addImage(touch: Touch) { if touch.previousPlaceDistance < 80 { return } // Get a random image and place it. let index = randomInt(from: 0, to: animals.count - 1) let graphic = Graphic(image: animals[index]) scene.place(graphic, at: touch.position) let seconds = randomDouble(from: 1.0, to: 5.0) // Experiment with different functions. graphic.swirlAway(after: seconds) }