Just simple .Net avatar generator :)
Install-Package Avatarator
- generate abbreviation/initial avatar
var config = new AvataratorConfig();
var generator = new AbbreviationGenerator(config);
var image = generator.Generate("my name", 100, 100);
Changing background colors set (default are pretty nice though :) ):
var myColors = new []{ Color.AliceBlue, Color.Aquamarine };
var config = new AvataratorConfig().WithBackgroundColors(myColors);
Of course You probably use some IoC - no problem :) Just bind IAvataratorConfig
and IGenerateAvatar
:)
Maybe You have an idea for other avatar generator - do no hesitate - please send me some pull request :)