Adventurer neutral - allow skin color adjustments #220
-
I love the adventurer neutral avatars and would love if I could choose the skin color. I plan on using it for a DnD initiative tool I'm working on, but for PCs I have to be able to choose the skin color. Is there any chance for that to happen? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @mortetm you can use the HTTP-API https://avatars.dicebear.com/api/adventurer-neutral/your-custom-seed.svg?backgroundColor=%23ff0000 JS-Library import { createAvatar } from '@dicebear/avatars';
import * as style from '@dicebear/adventurer-neutral';
const avatar = createAvatar(style, {
seed: 'your-custom-seed',
backgroundColor: ['#ff0000']
}); |
Beta Was this translation helpful? Give feedback.
-
Hey Florian! Thank you, that is great. Now I can have green-skinned orcs as well! This is an amazing project and I am so very happy to have found it. |
Beta Was this translation helpful? Give feedback.
Hi @mortetm
you can use the
backgroundColor
option to set the skin color.HTTP-API
https://avatars.dicebear.com/api/adventurer-neutral/your-custom-seed.svg?backgroundColor=%23ff0000
JS-Library