Skip to content

Conversation

@cibernox
Copy link

# Being inside cibernox/src
go run avatarme.go username-or-unique-field # p.e. go run avatarme.go [email protected]

Use --help to see usage:

go run src/avatarme/main.go --help
NAME:
   Avatarme - Generates an unique avatar for the given string

USAGE:
   Avatarme [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --output, -o 'output.png'    path of the output file
   --size, -s '256'     side length of the generated image (in px). Will be ronded to a multiple of 8
   --help, -h           show help
   --version, -v        print the version

Filling pixels one by one.

TODO:

- Must exist a better way of filling portion of an image an once instead of
  iteration over pixels.
- Allow to export image as jpg/webp
- Allow to customize with flags: output file name/path, format?
- Different image generations? Random triangles? Barcodes?
@cibernox
Copy link
Author

I've namespaces my approach inside a folder with my username.

It is not really clear to me that was the original intention of this repo (share the different approaches each one finds to solve the same problem).

If not, please close this PR. 💥

@cibernox
Copy link
Author

cibernox commented Aug 4, 2014

I'm done here. Nice exercise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant