The highest tagged major version is
v2.
package
Version:
v1.9.0-alpha
Opens a new window with list of versions in this module.
Published: Oct 15, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func CopyImage(img image.Image) []byte
-
func MipmapLevel(det float32) int
-
func QuadIndices() []uint16
-
func QuadVertices(width, height int, sx0, sy0, sx1, sy1 int, a, b, c, d, tx, ty float32, ...) []float32
-
func Vertex(width, height int, dx, dy, sx, sy float32, cr, cg, cb, ca float32) []float32
CopyImage copies img to a new RGBA image.
Basically CopyImage just calls draw.Draw.
If img is a paletted image, an optimized copying method is used.
CopyImage is used only internally but it is exposed for testing.
MipmapLevel returns an appropriate mipmap level for the given determinant of a geometry matrix.
MipmapLevel returns -1 if det is 0.
MipmapLevel panics if det is NaN.
func QuadVertices(width, height int, sx0, sy0, sx1, sy1 int, a, b, c, d, tx, ty float32, cr, cg, cb, ca float32) []float32
Source Files
¶
Click to show internal directories.
Click to hide internal directories.