draw

package
v0.0.0-...-dd68339 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package draw is for drawing images of fractals

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blend

func Blend(colors ...color.Color) color.Color

func New

func New(log logger, pixelColorer func(pixelX, pixelY, width, height int) color.Color) func(width, height int) image.Image

New returns a new drawing function that uses the passed pixel colorer func

Types

type Colorizable

type Colorizable interface {
	MaxIterations() uint16
	IterateWhileNotReachingBound(complex128) uint16
}

type Colorizer

type Colorizer func(complex128) color.Color

Colorizers color complex numbers

func NewColorizer

func NewColorizer(base color.Color, colorizable Colorizable) Colorizer

Jump to

Keyboard shortcuts

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