Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/nawafinity/geometric-avatar

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/nawafinity/geometric-avatar

  • v0.0.0-20230930165354-dd97079048e1
  • Source
  • Go
  • Socket score

Version published
Created
Source

geometric-avatar

geometric-avatar is a Go package that effortlessly generates captivating geometric pattern avatars based on email hashes.


GitHub Sponsors donate button GitHub Sponsors donate button

Changelog | العربية

Features

  • Simplicity & Ease: Straightforward and effortless to use.
  • 🎨 Customizable: Tailor avatars to your preference with a range of customization options.
  • 🆙 Golang v1.27 Compatibility: Developed and optimized for Golang version 1.27.

Installation

To integrate the package, utilize go get:

go get github.com/nawafinity/geometric-avatar

Usage

Below is an illustrative example of how to utilize the package in your code.

package main

import (
	"fmt"
	"github.com/nawafinity/geometric-avatar"
	"image/color"
)

func main() {
	email := "geometric-avatar"
	options := map[string]interface{}{
		"size":       128.0,
		"margin":     0.08,
		"background": color.RGBA{238, 238, 238, 255},
	}

	avatar := geometric_avatar.GenerateAvatar(email, options)
	dc := avatar.Render()

	// Save the avatar as a PNG file
	err := dc.SavePNG("output.png")
	if err != nil {
		fmt.Println("Error:", err)
	}
}

Sponsor

Become a Sponsor

Bugs and Feature Requests

Discovered a bug or have a feature request? Please open a new issue

License

MIT License

FAQs

Package last updated on 30 Sep 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc