vision

package
v0.0.0-...-eb6d389 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShadowCast

func ShadowCast(m ShadowCastMap, r Radius, source image.Point)

func ShadowCastFloat

func ShadowCastFloat(m ShadowCastMap, r Radius, source image.Point)

func ShadowCastPar

func ShadowCastPar(m ShadowCastMap, r Radius, source image.Point)

Types

type Radius

type Radius interface {
	In(x, y int) bool
}

func CircularRadius

func CircularRadius(r int) Radius

func EndlessRadius

func EndlessRadius() Radius

type ShadowCastMap

type ShadowCastMap interface {
	SetVisible(p image.Point)
	IsTransparent(p image.Point) bool
}

Jump to

Keyboard shortcuts

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