In this coding challenge, I use trigonometry and perlin noise to procedurally generate butterfly wing designs with p5.js. This challenge is inspired by Katie Rose Pipkin’s Moth Generator (

Support this channel on Patreon:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Katie Rose Pipkin’s moth generator:
Katie Rose’s website:
Rose (mathematics):
My video on Polar Coordinates:
My playlist on Perlin Noise:

Source Code for the all Video Lessons:


For More Coding Challenges:
For an Intro to Programming using p5.js:
For more videos about p5.js and Data:

Help us caption & translate this video!