vgimage

package module
v0.0.0-...-2e4101f Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: Zlib Imports: 3 Imported by: 0

README

vgimage

Video-Game Image Editing library for Content production tools written in Go.

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Normal64Model = color.ModelFunc(normal64Model)
View Source
var NormalModel = color.ModelFunc(normalModel)

Functions

This section is empty.

Types

type BasePicture

type BasePicture struct {
	Rect   image.Rectangle
	Stride int
	Length int
}

func NewBasePicture

func NewBasePicture(r image.Rectangle) BasePicture

func (*BasePicture) Bounds

func (b *BasePicture) Bounds() image.Rectangle

func (*BasePicture) PixOffset

func (b *BasePicture) PixOffset(x, y int) int

type Normal

type Normal struct {
	X, Y, Z float32
}

func ColorToNormal

func ColorToNormal(col color.Color) Normal

func (Normal) Normal

func (n Normal) Normal() Normal

func (Normal) Normal64

func (n Normal) Normal64() (m Normal64)

func (Normal) Normalize

func (n Normal) Normalize() Normal

func (Normal) RGBA

func (n Normal) RGBA() (r, g, b, a uint32)

type Normal64

type Normal64 struct {
	X, Y, Z float64
}

func ColorToNormal64

func ColorToNormal64(col color.Color) Normal64

func (Normal64) Normal

func (n Normal64) Normal() (m Normal)

func (Normal64) Normal64

func (n Normal64) Normal64() Normal64

func (Normal64) Normalize

func (n Normal64) Normalize() Normal64

func (Normal64) RGBA

func (n Normal64) RGBA() (r, g, b, a uint32)

type Normal64Map

type Normal64Map struct {
	BasePicture
	Normals []float64
}

func NewNormal64Map

func NewNormal64Map(r image.Rectangle) *Normal64Map

func (Normal64Map) At

func (n Normal64Map) At(x, y int) color.Color

func (Normal64Map) ColorModel

func (n Normal64Map) ColorModel() color.Model

func (Normal64Map) Normal64At

func (n Normal64Map) Normal64At(x, y int) Normal64

func (Normal64Map) NormalAt

func (n Normal64Map) NormalAt(x, y int) Normal

func (Normal64Map) Opaque

func (n Normal64Map) Opaque() bool

func (Normal64Map) Set

func (n Normal64Map) Set(x, y int, c color.Color)

func (Normal64Map) SetNormal

func (n Normal64Map) SetNormal(x, y int, c Normal)

func (Normal64Map) SetNormal64

func (n Normal64Map) SetNormal64(x, y int, c Normal64)

type NormalMap

type NormalMap struct {
	BasePicture
	Normals []float32
}

func NewNormalMap

func NewNormalMap(r image.Rectangle) *NormalMap

func (NormalMap) At

func (n NormalMap) At(x, y int) color.Color

func (NormalMap) ColorModel

func (n NormalMap) ColorModel() color.Model

func (NormalMap) Normal64At

func (n NormalMap) Normal64At(x, y int) Normal64

func (NormalMap) NormalAt

func (n NormalMap) NormalAt(x, y int) Normal

func (NormalMap) Opaque

func (n NormalMap) Opaque() bool

func (NormalMap) Set

func (n NormalMap) Set(x, y int, c color.Color)

func (NormalMap) SetNormal

func (n NormalMap) SetNormal(x, y int, c Normal)

func (NormalMap) SetNormal64

func (n NormalMap) SetNormal64(x, y int, c Normal64)

Directories

Path Synopsis
An Image Copy algorithm.
An Image Copy algorithm.
A Component for working with Diffuse maps aka.
A Component for working with Diffuse maps aka.
A Component for working with Normal-Maps.
A Component for working with Normal-Maps.
Math for working with normals.
Math for working with normals.

Jump to

Keyboard shortcuts

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