This sketch shows a functions that we create to draw a neat effect. There is much more to learn about functions, though, so be sure to check other sources if you are having trouble with functions in JavaScript.
This uses an image that was Creative Commons licensed by werner22brigitte and taken from Pixabay. Thanks!