Generate Random Cartoon Avatars With JS And SVG – faces.js

Category: Javascript , Recommended | November 5, 2018
Author: dumbmatter
Views Total: 1,426 views
Official Page: Go to website
Last Update: November 5, 2018
License: Apache 2.0

Preview:

Generate Random Cartoon Avatars With JS And SVG – faces.js

Description:

faces.js is a standalone JavaScript library used for generating random, SVG-based, vector shaped cartoon faces for user avatars.

How to use it:

Download and place the JavaScript file faces.js at the bottom of the webpage.

<script src="faces.js"></script>

Generate a random cartoon avatar inside a given container.

<div id="example"></div>
faces.generate("example");

Get the cartoon avatar as a JS object.

var face = faces.generate("example");
console.log(face);

You Might Be Interested In:


Leave a Reply