Skip to content

tomcraven/go-mandelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-mandelbrot

A version of the mandelbrot set in Go

Installation

sudo apt-get install libsdl2-dev
go get github.com/veandco/go-sdl2
go get github.com/tomcraven/go-mandelbrot

Run

go run *.go [optional: theme-name]
e.g.
go run *.go fire

Where theme-name is one of the themes in colour.go, currently:

  • full-spectrum
  • fire
  • leaf
  • water
  • beach (default)
  • random

Usage

Arrow keys to move a round, 'z' and 'x' to zoom, 'a' and 's' in increase/decrease the level of detail

Known issues

When the zoom or detail level is high, there is a fair bit of screen tearing. The benefit of this is that overall on most machines, the image takes less time to render. I need to spend some time fiddling with using SDL2 properly and double buffering the screen.

Pictures

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages