render

package
v0.0.0-...-414057b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Unlicense Imports: 8 Imported by: 0

Documentation

Overview

Package render bundles render relevant information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Render

type Render struct {
	Image      *image.RGBA                    // The image to be rendered.
	Factor     float64                        // Multiplicative change in value.
	Exposure   float64                        // Additative change in value.
	Points     int                            // Number of points calculated.
	F          func(float64, float64) float64 // Function to calculate the value of all pixels.
	OrbitRatio float64                        // Ugly fix.
}

Render contains information about how an image should be rendered.

func New

func New(width, height int, f func(float64, float64) float64, factor, exposure float64) *Render

New returns a new render for fractals.

func (*Render) Clear

func (ren *Render) Clear()

Clear clears the image in the renderer to allow for new frames in interactive rendering.

func (*Render) Render

func (ren *Render) Render(filePng, fileJpg bool, filename string) (err error)

Render creates an output image file.

func (*Render) String

func (ren *Render) String() string

String prints a string representation of the Render struct.

Jump to

Keyboard shortcuts

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