Skip to content

Instantly share code, notes, and snippets.

@natpbs
natpbs / bubbles.m
Last active April 29, 2020 08:20
MATLAB code to produce a nice animation, it takes a while to run so you can see the end result here https://twitter.com/Natpbs/status/1253385576084013056?s=20. The champagne portait comes from https://blogs.mathworks.com/cleve/2020/04/15/champagne-portraits-of-complex-functions/
% by natpbs
% based on https://blogs.mathworks.com/cleve/2020/04/15/champagne-portraits-of-complex-functions/
fps = 50;
duration = 15;
frame_tot = fps * duration;
exponents = linspace(0, 4, frame_tot);
size = 640;
m = 256;