https://editor.p5js.org/jinyuanxu.jx/sketches/11UrxWPq_1
I originally intended to create a basic thunder because I went to Tokyo last summer to watch the Adachi Fireworks Festival. Unfortunately, it was canceled because of an unexpected thunderstorm that evening. Also, I want to experiment with what I can make by using the createVector() and random() functions.
(The thunder at that day)
First I started to make some basic vector shapes that look like thunder.
Then I realized the first version is more like a plasma ball(see below) rather than a thunder strike.
I decided to divide a lightning strike into a main strike and several branches. To make the main strike stand out, I made a glowing effect on the main strike. I also made the thunder appear at where my mouse is pointed at.