monster-hash

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 6 Imported by: 0

README

Pixel art Generator

A Go package for generating 16×16 pixel art deterministically from a seed string. Includes multiple templates (person, dog, cat, tree, star), color palettes, accent overlays, and border styles for endless variety.

Features

  • Deterministic generation using SHA-256 of seed.
  • 5 shape templates + customizable additions.
  • 16 rich color palettes (BG, primary, accent, border).
  • Optional accent overlay shapes.
  • Four border styles: rectangle, circle, dots, checker.
  • Horizontal flip based on seed bits.

Installation

go get github.com/flynnfc/artHash

Usage

package main

import (
    "image/png"
    "os"

    "github.com/flynnfc/artHash"
)

func main() {
    img := artHash.Generate("example-seed")
    f, _ := os.Create("example.png")
    defer f.Close()
    png.Encode(f, img)
}

Examples

Upload your generated images here to illustrate different seeds:

Example 1 Example 2

Contributing

Feel free to open issues or PRs to add more templates, palettes, or features.

License

MIT © Flynnfc

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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