Skip to content

Display just the individual attributes #353

Answered by FlorianKoerner
weronikazak asked this question in Q&A
Discussion options

You must be logged in to vote

I looked at it again and realized that my answer was wrong. It is already possible. Here are a few examples:

HTTP-API

https://api.dicebear.com/7.x/micah/svg?base[]&hair[]&shirt[]&ears[]&glassesProbability=0&backgroundColor=F9C9B6,AC6651,77311D&scale=200&translateX=-5&translateY=8&seed=example

JS-Library

import { createAvatar } from '@dicebear/core';
import * as micah from '@dicebear/micah';

const avatar = createAvatar(micah, {
  base: [],
  hair: [],
  ears: [],
  glassesProbability: 0,
  backgroundColor: ["F9C9B6", "AC6651", "77311D"],
  scale: 200,
  translateX: -5,
  translateY: 8,
  seed: 'example'
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FlorianKoerner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #352 on August 30, 2023 19:42.