Flashlight Penumbra
2024-09-08. Filed in public, twoville.
A few days ago I fell in love with the way a flashlight illuminated my wall. The flashlight had multiple LEDs, so the penumbra had as many layers as a flaky croissant. I decided to try and recreate the feeling in Twoville with as little code as possible. This is the result:
That's a picture of 10 polygons. Each polygon started off regular with a random radius, opacity, and number of vertices. Then I rotated each vertex away from its regular position by up to 10 degrees. The sharp corners are automatically rounded off as fillets.
Here's the Twoville source:
Thanks, flashlight, for the inspiration. I now have randomFloat
, randomInt
, and seed
in Twoville.