generate

package
v0.0.0-...-6dec35e Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	Scale   float64
	OffsetX float64
	OffsetY float64
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewJuliaGenerator

func NewJuliaGenerator(c complex128, width, height int) *Generator

func NewMandelbrotGenerator

func NewMandelbrotGenerator(width, height int) *Generator

func (*Generator) AddCallback

func (g *Generator) AddCallback(callback callbackFunc) uuid.UUID

func (*Generator) BeginMovement

func (g *Generator) BeginMovement()

func (*Generator) EndMovement

func (g *Generator) EndMovement()

func (*Generator) GetCamera

func (g *Generator) GetCamera() Camera

func (*Generator) GetMaxIterations

func (g *Generator) GetMaxIterations() int

func (*Generator) Move

func (g *Generator) Move(dPixelX, dPixelY int)

func (*Generator) RemoveCallback

func (g *Generator) RemoveCallback(id uuid.UUID)

func (*Generator) SetCamera

func (g *Generator) SetCamera(camera Camera)

func (*Generator) SetMaxIterations

func (g *Generator) SetMaxIterations(maxIterations int)

func (*Generator) Start

func (g *Generator) Start(loop bool)

func (*Generator) Stop

func (g *Generator) Stop()

func (*Generator) Zoom

func (g *Generator) Zoom(delta float64, pixelCenterX, pixelCenterY int)

Jump to

Keyboard shortcuts

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