用于创建头像的jQuery / JavaScript库? [英] jQuery/JavaScript Library for avatar creation?

查看:116
本文介绍了用于创建头像的jQuery / JavaScript库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道可以创建Pixelart头像的JavaScript或jQuery库?我希望通过使用组件创建Potatohead先生风格的面部并创建一个GIF。

Is anyone aware of a JavaScript or jQuery library that enables the creation of Pixelart avatars? I'm hoping for something with a Mr. Potatohead style face creation using components and resulting in a GIF.

如果没有,我想我需要自己制作一个。

If not, I guess I'll need to make one myself.

推荐答案

您可以尝试 Blockies

它的使用非常简单(来自自述文件):

Its usage is pretty simple (from the README):

var icon = blockies.create({ // All options are optional
    seed: 'randstring', // seed used to generate icon data, default: random
    color: '#dfe', // to manually specify the icon color, default: random
    bgcolor: '#aaa', // choose a different background color, default: white
    size: 15, // width/height of the icon in blocks, default: 10
    scale: 3 // width/height of each block in pixels, default: 5
});

其中 icon 是画布元素。

你无法真正计划你将会得到什么:你最终会得到一个随机图标,除非你指定一个种子来生成它。

You can't really plan what you're going to get, though: you just end up with a random icon unless you specify a seed to generate it from.

这篇关于用于创建头像的jQuery / JavaScript库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆