Version 2.1.0
Changes:
- The following methods were deprecated since they don't do what their names say they do:
Color.FromArgb(useColor.FromRgbainstead)Color.ToArgb(useColor.ToRgbainstead)
IdenticonStyle.Saturationis now deprecated. UseIdenticonStyle.ColorSaturationinstead.
Improvements:
- New
IdenticonStyleoptions:ColorSaturation,GrayscaleSaturation,Hues. - New
Identicon.DefaultStyleproperty. - New
Color.FromHsloverload accepting an alpha value. - New methods
Color.ParseandColor.TryParseable to parse most CSS color strings. - New methods
Color.FromHwb,Color.FromRgba,Color.ToRgba. @Html.Identiconand@Url.Identiconoverloads taking anIdenticoninstance no longer requires a size, since theIdenticoninstance already contain a size.- Improved error handling in
@Htmland@Urlextension methods.
Bug fixes:
- Some circle shapes were rendered slightly larger than the JS and PHP version.
- Smaller circles were rendered very badly to PNG in smaller sizes.
- Padding is now rounded instead of truncated to nearest integer to avoid floating point rounding errors.