// This sketch animates a ghost! It uses the cos() // function to make the ghost go left and right, // and it uses an array to hold previous values // to make the tail.
This is a companion discussion topic for the original entry at https://happycoding.io/examples/p5js/animation/ghost