Skip to content

Instantly share code, notes, and snippets.

View lokedhs's full-sized avatar

Elias Mårtenson lokedhs

View GitHub Profile
@lokedhs
lokedhs / mandelbrot.sh
Last active January 29, 2020 20:18 — forked from benley/mandelbrot.sh
#!/bin/bash -i
# Draws a mandelbrot set.
# Author: Benjamin Staffin
#
# Modifications by Elias Mårtenson to remove dependency on the terminal type
#
# Simulates floating point by using big integers. Flagrantly uses two integers
# instead of complex numbers. I couldn't be arsed to calculate infinity limits
# of logarithmic functions in bash, so this just uses escape time values for
# colors.