Socket
Book a DemoInstallSign in
Socket

github.com/flynnfc/arthash

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/flynnfc/arthash

v1.0.0
Source
Go
Version published
Created
Source

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

FAQs

Package last updated on 16 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.