RoboHash

Rust implementation of RoboHash by e1ven

Install

bash robohash = "0.2.3"

Example Implementation

```rust use std::fmt::Error; use robohash::RoboHashBuilder;

fn main() -> Result<(), Error> { let text = "test"; let robo = RoboHashBuilder::new(text).build(); let robohash = robo.assemblebase64()?; println!("{robo_hash:#?}"); Ok(()) } ````

Define Size

rust let width = 512; let height = 512; let robo = RoboHashBuilder::new("test") .with_size(width, height) .build();

Define Colour

rust let robo = RoboHashBuilder::new("test") .with_colour("green") .build();

Define Set

rust let robo = RoboHashBuilder::new("test") .with_set("set3") .build();

Change Sets Directory

rust let robo = RoboHashBuilder::new("test") .with_set_location("./sets_location") .build();

Define Background

rust let robo = RoboHashBuilder::new("test") .with_background_set("bg1") .build();

Change Background Directory

rust let robo = RoboHashBuilder::new("test") .with_background_location("./backgrounds") .build();

Full Example

```rust use std::fmt::Error; use robohash::RoboHashBuilder;

fn main() -> Result<(), Error> { let text = "test"; let robo = RoboHashBuilder::new(text) .withset("set1") .withcolour("green") .withsetlocation("./sets-root") .withbackgroundset("bg1") .withbackgroundlocation("./backgrounds") .withsize(512, 512) .build(); let robohash = robo.assemblebase64()?; println!("{robohash:#?}"); Ok(()) } ```

Implemented

Todo