Construct robot avatar scalable vector image from any text. Construction can be done in the browser. Make the robots come alive by starting the SVG animations.
Visit this demo site to see a working demo for controlling the animations and changing the robots.
npm install -D robohash-animated-svg-svelte
<script lang="ts">
import { RobohashAnimatedSvg } from "robohash-animated-svg-svelte";
let robot: RobohashAnimatedSvg;
</script>
<RobohashAnimatedSvg bind:this={robot} width={500} height={500} value="VCpL+ttOxnunjiptuA5AB+JjFYcAFOMOVPuVLt/HE2Q="/>
<button on:click={() => robot.start()}>start animation</button>
<button on:click={() => robot.stop()}>stop animation</button>
Any text in the value property will be hashed and from the hash we construct a robot. We construct the same robot as Robohash does.
Robohash robots created by Zikri Kader
Svg version of robots came from elapouya django-robohash-svg.
Origin of the svg robots is nimiq who also wrote this design blog post.
If you have suggestions for how this app could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.