Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.29 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.29 KB

Avatarator

Just simple .Net avatar generator :)

NuGet

Install-Package Avatarator

Features

  • generate abbreviation/initial avatar

Usages

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 :)

Contribute

Maybe You have an idea for other avatar generator - do no hesitate - please send me some pull request :)