This sketch creates a flickering Jack-o’-lantern by drawing a pumpkin, and then filling in the eyes and mouth with a random red/yellow color each frame. Try changing the color of the flicker!
This is a companion discussion topic for the original entry at https://happycoding.io/examples/p5js/animation/flickering-jack-o-lantern