Giter Club home page Giter Club logo

avatarize's Introduction

Avatarize!

Project aiming at providing a ready to use avatar API for any project.

Based on content and ideas from Rishabh Mishra, https://codepen.io/RishabhMishra on the "Avatar Maker" project. https://codepen.io/RishabhMishra/pen/LvoQwP

Changes

  • editable SVG hiearchy
    • just set the class attribute on the root group in your SVG editor
    • when done, regenerate the files to be used in project
  • more assets
  • API integration
  • supports multiple instances (more than one avatar on a page)
  • dropped JQuery dependency

Test it

Look at the original: https://codepen.io/pnmo/pen/mdyZXxE

Or the demo site

Usage

Copy the files in site/avatar* to your project and start using the API !

Reuse

Check the demo code on the demo page

Customize

  • Edit or add svgs in the source folder
  • run "build" from its own folder
  • Enjoy the updates files in the site folder !

API

asObject() return an object describing the current avatar

asArray() return an array showing each INDEX value

asString() return a string listing each value

fromName(name) generates an avatar from a string

debug() dump all values in the console

random() randomize all values and update the avatar

update() update the avatar display

asCode() get a code identifying this avatar setup

fromCode(code) set the avatar according to some previously fetched avatar setup from asCode()

avatarize's People

Contributors

fdev31 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.