Flux is a command-line tool that uses a Monte Carlo (MC) algorithm to converge towards a target image using a random sequence of nearest neighbor pixel swaps. Images produced by flux resemble iron filings manipulated by a magnetic field.