This sketch applies the weighted affine midpoint map twelve times a second. Initially, all the weights are set to 0.5, giving the classic affine midpoint map. Pressing F picks random weights between 0.1 and 0.9. Pressing D returns the weights to 0.5. The left and right arrow keys change the number of sides.

You may need to click the display before it will pay attention to your keyboard input.

Here's the source code.

Written in Processing, and licensed under a Creative Commons Attribution 4.0 International License.

Creative Commons License