draw

package
v0.0.0-...-883f3e4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image interface {
	Bounds() geometry.Rect

	// Draw the image on the target that imported it.
	// The drawn image is transforming by the matrix m and then by the current target-wide matrix.
	// The anchor is understood to use the same coordinate system as the bounds do.
	Draw(m geometry.Mat, anchor geometry.Vec)
}

type Target

type Target interface {
	Clear(c color.Color)
	SetMatrix(m geometry.Mat)
	Import(img image.Image) Image
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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