sequence

package
v0.0.0-...-37f3e00 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture(sn SequenceNumerics) []base.PixelMember

func ImageSequence

func ImageSequence(sn SequenceNumerics, context draw.DrawingContext)

Types

type MockFactory

type MockFactory struct {
	TBuild   bool
	Numerics SequenceNumerics
}

func (*MockFactory) Build

func (mock *MockFactory) Build() SequenceNumerics

type MockNumerics

type MockNumerics struct {
	TSequence bool
	TSubImage bool

	PointCount int
}

func (*MockNumerics) Sequence

func (mn *MockNumerics) Sequence() []base.PixelMember

func (*MockNumerics) SubImage

func (mn *MockNumerics) SubImage(rect image.Rectangle)

type MockRenderApplication

type MockRenderApplication struct {
	base.MockRenderApplication
	draw.MockContextProvider

	TSequenceNumericsFactory bool

	SequenceFactory SequenceNumericsFactory
}

func (*MockRenderApplication) SequenceNumericsFactory

func (mock *MockRenderApplication) SequenceNumericsFactory() SequenceNumericsFactory

type RenderApplication

type RenderApplication interface {
	base.RenderApplication
	draw.ContextProvider
	SequenceProvider
}

type SequenceNumerics

type SequenceNumerics interface {
	Sequence() []base.PixelMember
}

SequentialNumerics provides sequential (column-wise) rendering calculations

type SequenceNumericsFactory

type SequenceNumericsFactory interface {
	Build() SequenceNumerics
}

type SequenceProvider

type SequenceProvider interface {
	SequenceNumericsFactory() SequenceNumericsFactory
}

type SequenceRenderStrategy

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

func (SequenceRenderStrategy) Render

func (srs SequenceRenderStrategy) Render() (*image.NRGBA, error)

The SequenceRenderStrategy implements RenderContext as it draws the Mandelbrot set line by line

Jump to

Keyboard shortcuts

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