Skip to content

images generated using randomness AST generation and pizel generation

License

Notifications You must be signed in to change notification settings

BhuvanB404/hash-art

Repository files navigation

Hash Visualiser (RandomArt Generator)

This project is a simple implementation of a hash visualisation (randomart) generator, inspired by the approach described in the referenced research paper. The generator creates random unique images from hash-like data using a grammar-based method.

Example Output

Below is an example of an image generated by the program:

Example Output

How it Works

  • The program uses a grammar-based approach to generate random images.
  • The logic is implemented in C, following the method described in the research paper.
  • each compimlation outputs random image, also vizually appealing(if lucky)

Reference

The method is based on the following research paper:

Visualisation of Hashes using Random Art


Installation & Usage

Prerequisites: a C compiler (gcc/clang) and standard build tools. A Makefile is provided but the simple compile line below works on any Unix-like system.

First clone the repo.

Build (simple):

cc -O2 -Wall -o hash hash.c -lm

Or try the Makefile

make

Run:

./hash
# This generates `output.png` in the repository root

View the output image (Linux):

xdg-open output.png

About

images generated using randomness AST generation and pizel generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published