engine

package
v0.0.0-...-955dece Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scene

type Scene struct {
	Width, Height int
	Img           *image.RGBA
}

Scene represents the s on which the scene is projected as a 2D picture

func NewScene

func NewScene(width int, height int) *Scene

NewScene returns a new Scene

func (*Scene) EachPixel

func (s *Scene) EachPixel(colorFunction func(int, int) color.RGBA)

EachPixel traverses the image s and calls the provided function for each pixel

func (*Scene) Save

func (s *Scene) Save(filename string)

Save exports the image to hdd

Jump to

Keyboard shortcuts

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