mandelbrot

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 6 Imported by: 0

README

This code is used by the demo - build under renderview/cmd/demo.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMandelModel

func NewMandelModel() *rv.BasicRenderModel

Types

type MandelModel

type MandelModel rv.BasicRenderModel

type ZoomRenderParameter

type ZoomRenderParameter struct {
	rv.EmptyParameter

	Value int
	Model *MandelModel
}

Many applications can simply use OPT_AUTO_ZOOM but since the Mandelbrot algorithm we are using ignores the height and produces a square image, we use a custom parameter to calculate the zoom ourselves, also taking the opportunity to dynamically adjust the Escape parameter.

func NewZoomRP

func NewZoomRP(name string, value int, m *MandelModel) *ZoomRenderParameter

func (*ZoomRenderParameter) GetValueInt

func (e *ZoomRenderParameter) GetValueInt() int

func (*ZoomRenderParameter) SetValueInt

func (e *ZoomRenderParameter) SetValueInt(v int) int

Jump to

Keyboard shortcuts

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