Categorygithub.com/dusk125/pixelutils
modulepackage
1.1.0
Repository: https://github.com/dusk125/pixelutils.git
Documentation: pkg.go.dev

# README

pixelutils

A collection of random things I think could be useful for those using the Pixel library.

Available Tools

Check out the wiki to see how to use these tools.

  • Sprite Packer: Runtime packer based on rectpack2D.
  • ID Generator: Thread safe integer ID generator.
  • Ticker: My attempt for an easy-to-use framerate limiter.
  • Sprite Loader: A simple sprite/picture data loader based on the Pixel example.
  • Voronoi Diagrams: A pixel-compatible interface built on Voronoi Diagrams.

Planned

Contribution

Feel free to add any tools that you've created for Pixel, I just ask that they're documented well and an usage wiki entry is added.

# Packages

No description provided by the author

# Functions

Helper to load a sprite from a file and make Pixel.PictureData from it.
Helper to load a sprite from file and make a Pixel.Sprite from it.
NewTicker returns a new ticker with the given target fps and 500 stored previous framerates.
NewTickerV returns a new ticker with the given target fps and a custom amount of stored previous framerates.
Creates and returns a new pixel-compatible Voronoi.

# Constants

No description provided by the author

# Structs

IDGen is a simple, thread safe, integer id generator.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author