fract

package module
v0.0.0-...-2b72690 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 4 Imported by: 0

README

Go Fractal Library

A library for creating images of fractal sets in Go.

Features:

  • Mandelbrot
  • customizable colouring

Please note: This repository was primarily created as a way for me to learn a few Go idioms, primarily Go routines. I have done no benchmarking to confirm in the existing usage of Go routines is optimal, or indeed remotely sensible.

Documentation

Overview

Functions for generating images of fractal sets

Index

Constants

View Source
const MaxIterations = 10000

Iterations after which we are "converged"

Variables

This section is empty.

Functions

func ColorBinary

func ColorBinary(iterations int) color.Color

func CountBlack

func CountBlack(img image.Image) uint

func Mandelbrot

func Mandelbrot(img draw.Image, col Colorize, min, max complex128)

Generate Mandelbrot set

Types

type Colorize

type Colorize func(iterations int) color.Color

Color the image using iterations to divergence

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL