package
0.0.0-20210622120855-93f9cd5359db
Repository: https://github.com/faiface/pixel-examples.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AnchorTxt positions a text.Text label with an anchor alignment.
AtlasASCII returns an atlas which allows you to draw only ASCII characters.
Direction returns a direction as a normalized vector.
ItfsToStrs converts []interface{} to []string.
LoadPicture decodes an image that has been encoded in a registered format.
LoadPictureFromFile decodes an image that has been encoded in a registered format.
LoadTrueTypeFont creates and returns a font face.
LoadTrueTypeFontFromFile creates and returns a font face.
NewAtlas newly loads and prepares a set of images of characters or symbols to be drawn.
NewCamera is a constructor.
NewExplosions is a constructor.
NewFPSWatch is a constructor.
NewFPSWatchSimple is a constructor.
NewGalaxy is a constructor.
NewSprite converts an asset (resource) into a sprite.
RandomNiceColor from Platformer.
VerticesOfRect returns 4 vertices of a rectangle in a form of a slice of vectors.

# Constants

enum AnchorY.
enum AnchorX.
enum AnchorX.
enum AnchorY.
enum AnchorX.
enum AnchorY.

# Structs

Aim for experiments.
Camera is a tool to get the screen center to be able to follow a certain point on a plane.
DtWatch is a delta time checker.
Explosions is an imdraw and a manager of all particles.
FPSWatch measures the real-time frame rates and displays it on a target canvas.
Galaxy is an imd of stars.

# Type aliases

AnchorX - Left, Center, Right.
AnchorY - Top, Middle, Bottom.